Fork me on GitHub

Pagemaster templates not being used  Bottom

  • I'd log this as a fault but it's so "off" it must be something I'm doing.

    I have created a new publication using a few string, text and image upload fields. When to templates installed, it renders using the default output but displays the debug popup. I'm really not sure what to look for here. This looks odd:

    pndebug plugin found at line 72 in template modules/pagemaster/pntemplates/-

    The "-" at the end looks like its missing values surrounding it (?).

    When I use the template generator and paste it into a template file, it doesn't seem to be used. I have tried it at my preferred location /config/templates/pagemaster/output/viewpub_testgallery.htm and also at /modules/pagemaster/pntemplates/output/viewpub_testgallery.htm.

    Suggestions?
  • 110% sure your file name is right?

    --
    Home Page | Find on Facebook | Follow on Twitter
  • Yes, I copied the name from the pagemaster status box (development mode) and used that to create the file. Twice.
  • Well it's still popping up the debug console - not sure why - but it's not because the templates are missing. I thought that was the case because of a caching issue and because in "dev mode" pagemaster is LYING!. When you have dev mode turned on, the message:

    "This is a generic template. Your can get the pubview code and create a customized template (viewpub_testgallery.htm), then store it in the the config directory: /config/templates/pagemaster/output/viewpub_testgallery.htm or within your theme: /templates/modules/pagemaster/output/viewpub_testgallery.htm.
    You can hide this message disabling the development mode."

    appears even if you have a custom template in place. Silly me, I believed it. If you look in pagemaster_generic_navbar.htm there is no logic that would suppress that message when it is using a template file based on the "customized template" listed.

    This is clearly a rookie mistake on my part. But yes, I am a pagemaster rookie and I've wasted two evenings trying to figure out why it's not using my template file when it actually is using it.

    Now, can anyone tell me why the debug console is popping up? How do you decipher these things?
  • You must have: I think, tho I'm not sure, it may be in the code the nav bar uses to show that warning. CHeck the relevant templates for

    Code

    <!--[pndebug]-->


    --
    Home Page | Find on Facebook | Follow on Twitter
  • Hmm, I am using the SVN version. So you're saying it may not be telling me there's something wrong, just popping up all the time. I'll try removing it.
  • Hi Mr Bronto icon_smile ,

    I'm using the same version, in
    pagemaster --> setting --> dev mode off
    I don't get that pop-up anymore...
    I'm still a rookie too, no doubt... but I think I'm getting used to it... don't forget, it's still a RC version icon_smile

    - Igor

This list is based on users active over the last 60 minutes.