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.
I'm trying to assign separate images to different nodes on my site. I'm not sure if i should be using node-[nid] style templates or page-node.tpl templates for each specific node. The node types are mostly the same so I can't assign templates per node type. Anyone know what specific template format I would need to override the page.tpl.php and node.tpl.php files?
Thanks,
Casey
Comments
Comment #1
ishmael-sanchez CreditAttribution: ishmael-sanchez commentedKindly take a look at #1259930: Can you show a field from a node on a page template?.
Comment #2
caseyi CreditAttribution: caseyi commentedThanks, I was able to set rules for each separate nodes in the page.tpl file using <?php if