I have created a node-mytype.tpl.php, and have placed it in both the templates directory and the root of mytheme directory but cant get it to work. node.tpl.php is used instead of node-mytype.tpl.php. Any help would be much appreciated.

Comments

voltron’s picture

Status: Active » Closed (fixed)
GiorgosK’s picture

use node--CONTENTTYPE.tpl.php
(note 2 dashes --)

fdefeyter@gmail.com’s picture

Issue summary: View changes

does not work...

charlie charles’s picture

have you cleared the cache?

Samgarr’s picture

Does not work for me, cache cleared...

bryanhidalgo’s picture

Does not work for me either, tried node.tpl.php, and node--page.tpl.php with no success. Cleared cache also

wimper’s picture

I have just tried the ones underneath myself and both are working fine in bootstrap:

node--[content-type].tpl.php
page--[view-page-name].tpl.php

Make sure to use 2 dashes and use the machine readable name for the content types!
Place them in the templates-folder of your theme and everything should work just fine.

hmartens’s picture

Where can I get a bootstrap compatible node.tpl.php file because I don't see one in bootstrap folder?

sunnyuff’s picture

Hi, bootstrap as it looks to me uses node.tpl.php from core node module. So you need to copy that in you theme templates and then work as normal.
I tried with node.tpl.php and node--blog.tpl.php, works fine.
Hope this helps.

taes_rvr’s picture

If it's not working make sure you're not rewriting the output with something like display suit. ;)