I'm going nuts here. I want to create a custom page template for one page. I've tried a zillion configurations but nothing is working.
I have a node/page: ?q=content/prohibited (?q=node/258)
In sites/all/themes/sky/templates i copied page.tpl.php and removed all header reference. Then named it all of these to try to get it to work. I first enabled: "Enable page--[content-type].tpl.php suggestions". ( I also tried all these without enabling this)
page--node-258.tpl.php
page-node-258.tpl.php
page--content-prohibited.tpl.php
page-content-prohibited.tpl.php
page--258.tpl.php
page-258.tpl.php
page--prohibited.tpl.php
page-prohibited.tpl.php
I then went through all that using "_" instead of "-" just to see. I even used "[]" to see. I knew those wouldn't work, but dang! I'm running out of ideas :-)
I flushed the cache after every change.
What in the world am I doing wrong?
Thank you for any assistance.
Mark
Comment | File | Size | Author |
---|---|---|---|
#1 | page.tpl_.PNG | 23.01 KB | System Lord |
Comments
Comment #1
System Lord CreditAttribution: System Lord commentedThis is what should work, right? (see image)
Comment #2
System Lord CreditAttribution: System Lord commentedI just figured out the problem. The page.tpl.php file name needed to be written like this:
page--node--258.tpl.php
In the Sky UI > Markup overrides > "Enable page--[content-type].tpl.php suggestions" should probably be: "Enable page--[content--type].tpl.php suggestions"
What a relief!
:)
Comment #3
Jeff Burnz CreditAttribution: Jeff Burnz commentedpage--node--258.tpl.php is a node--ID suggestion.
I'll double check this is working OK, long time since I used node type suggestions.