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 want to move page header from page.tpl to main-content. I was looking for a content-template or nodes content-type -template. I could try to create a template. But could not find a model to base it from. Is Boostrap using some different structure for constructing the layout in this case.
Comment | File | Size | Author |
---|---|---|---|
#3 | Screen Shot 2014-10-09 at 12.13.32.png | 270.19 KB | wardoost |
Comments
Comment #1
wardoost CreditAttribution: wardoost commentedI can't figure out how this works either for this template.. Somebody have an answer for us?
Comment #2
danreb CreditAttribution: danreb commentedHi,
The page.tpl.php and other TPL files can be found inside the folder "system" in the path "bootstrap/templates/system/" you can copy the file and put it in your subtheme and modify as you want.
Obviously if you want the node.tpl.php , it is inside the "node" folder under templates/
Regards,
Danreb
Comment #3
wardoost CreditAttribution: wardoost commentedI have to edit a website I worked a small year ago on so I thought maybe this theme has been updated so I downloaded the latest version but the page.tpl.php file is under "bootstrap/theme/system" in my download. Also no templates folder with a node folder in it. Am I blind or something.. :p
Comment #4
danreb CreditAttribution: danreb commentedHi,
Yeah in the 3.0 version of bootstrap node.tpl.php is not yet included so if you want to overrides that you can go and copy the default node.tpl.php from drupal core and copy it to your sub theme and override it as you wish.
The path for the default node.tpl.php in drupal core can be found in "drupal/modules/node"
check the path here -> http://cgit.drupalcode.org/drupal/tree/modules/node/node.tpl.php?h=7.x
Regards,
Danreb
Comment #5
wardoost CreditAttribution: wardoost commentedI did that but it didn't seem to work.. It looks like the theme is ignoring the node.tpl.php file.
Comment #6
danreb CreditAttribution: danreb commentedHave you clear the cache?
Comment #7
wardoost CreditAttribution: wardoost commentedyes, and the setting 'Rebuild theme registry on every page' is checked.
Comment #8
markhalliwellThis has been fixed in7.x-3.x already. The 7.x-2.x branch only receives security fixes.