Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
D-7 I want one particular page to have one column. I tried creating a specific template for it. page-node-12.tpl.php but it is not being seen. I clear the cache each time I make a change. Am I forgetting something?
thanks.
Comments
Comment #1
timdavison CreditAttribution: timdavison commentedAre you using the correct syntax?
I think it should be:
page--node--12.tpl.php
Comment #2
yogarenzi CreditAttribution: yogarenzi commentedNo, I wasn't. That was it. Thank you. Why the double dashes now?
Thank you!
Comment #3
timdavison CreditAttribution: timdavison commentedHi
I think it is to prevent confusion between compound names and template suggestions. So names
like "maintenance-page.tpl.php" have a single dash but template suggestions like page--front.tpl.php
have double dashes.
Tim
Comment #4
gtsopour CreditAttribution: gtsopour commentedI changed the status of this issue to "fixed" based on the discussion of yogarenzi and timdavison.
Thank you timdavison for your responses.
Thanks
/George