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 can't find any node.tpl.php template file on the theme, only page.tpl.php and html.tpl.php under bootstrap/theme/system
is there a node.tpl suggestion included in the theme?
Comments
Comment #1
andregriffin CreditAttribution: andregriffin commentedIf it's not overridden in the base theme, it would be pulling from core. You should be able to copy the node.tpl from core (/modules/node/node.tpl.php) and place it in your subtheme.
Comment #2
markhalliwellHmm, no there's not. How did we lose that... very odd. We should pull the one over from the 2.x branch as it's different from core.
Comment #3
bunnicula CreditAttribution: bunnicula commented7.3 doesn't seem to have support for any of the node template suggestions (node--mytype.tpl.php or node--id.tpl.php etc). Can anyone else confirm this? AFAIK these suggestions are built into core and have somehow been overridden.
Comment #4
leanderl CreditAttribution: leanderl commentedI encountered this situation with Bootstrap 7.x-3.0 (Drupal 7.25) and was able to solve it by copying the node.tpl from core and then renaming it after the appropriate theme hook suggestion.
(Sometimes if it is hard to know the exact name the template should have you can check by doing a kpr($variables) in the node.tpl and look for theme_hook_suggestions. That's what I had to do to get it right).
Thanks for all the great work with this base theme by the way.
Comment #5
markhalliwellCommitted 89dd440 to 7.x-3.x:
Comment #8
joshuautley CreditAttribution: joshuautley commentedWill the node.tpl.php in the -dev release work in 3.0? (production release)
Comment #9
allanperry CreditAttribution: allanperry as a volunteer commentedI have the same question: Will the node.tpl.php in the -dev release work in 3.0? (production release)