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

CommentFileSizeAuthor
#1 page.tpl_.PNG23.01 KBSystem Lord
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

System Lord’s picture

FileSize
23.01 KB

This is what should work, right? (see image)

System Lord’s picture

I 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!

:)

Jeff Burnz’s picture

page--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.