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 have created a node-content_type_name.tpl.php in template file but it doesn’t override anything.
In node theming manual [#17565] is written that “there must also be an original node.tpl.php template present in your theme directory or the template suggestion is ignored.”
Where can we find the original node.tpl.php template for pixture reloaded?
Comments
Comment #1
hutch CreditAttribution: hutch commentedin themes/adaptivetheme/at_core/templates/
Comment #2
ronline CreditAttribution: ronline commentedThank you for the hint @hutch. I will check it out and update the issue accordingly.
Comment #3
ronline CreditAttribution: ronline commentedIt is not not working.... The machine name of the content type is "youtube_video".
I have copied the node.tpl.php to my theme directory and I copied the content of node.tpl.php to templates/node-youtube_video.tpl.php . The modifications in node-youtube_video.tpl.php are being ignored....
Comment #4
ronline CreditAttribution: ronline commentededit: The above comment was posted twice by accident
Comment #5
ronline CreditAttribution: ronline commentedCrawling through the documentation. Apparently there is different naming convention for D7 => https://drupal.org/node/17565#comment-4490038
node--youtube_video.tpl.php instead of node-youtube_video.tpl.php ?
Comment #6
ronline CreditAttribution: ronline commentedThe machine name of the content type contains underscores I had to translate them to hyphens.
The node-youtube_video.tpl.php
should be:
node--youtube-video.tpl.php