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

andregriffin’s picture

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

markhalliwell’s picture

Title: node.tpl.php on bootstrap3 » Add node.tpl.php back
Version: 7.x-3.0 » 7.x-3.x-dev
Component: Documentation » Code
Category: Support request » Bug report

Hmm, 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.

bunnicula’s picture

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

leanderl’s picture

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

markhalliwell’s picture

Status: Active » Fixed

Committed 89dd440 to 7.x-3.x:

Issue #2139589 by gusans: Add node.tpl.php back.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

  • Commit 89dd440 on 7.x-3.x, 8.x-3.x by Mark Carver:
    Issue #2139589 by gusans: Add node.tpl.php back.
    
joshuautley’s picture

Will the node.tpl.php in the -dev release work in 3.0? (production release)

allanperry’s picture

I have the same question: Will the node.tpl.php in the -dev release work in 3.0? (production release)