Posted by cerr on December 13, 2012 at 5:17am
Hi,
I'm trying to create a content type specific page with the "zen" theme and for that i copied node.tp.php in the zen/templates/ folder to node-restaurant.php and added this:
<?php
// We hide the comments and links now so that we can render them later.
hide($content['comments']);
hide($content['links']);
print render($content);
echo "TEST TEXT";
?>However, when I go to my content type page, that test text doesn't show up: http://xymply.inetgate.biz/node/1
Comments
Did you clear cache after
Did you clear cache after adding the template file?
Rename your file
Your site is in Drupal 7 so please rename your template file node-restaurant.php to node--restaurant.tpl.php then clear cache.
that was it!
Visabhishek ,
Yep, that was it, thank you! :) Perfect!
Ron
iNetGate - get connected
http://www.inetgate.biz
It should be node--yourcontenttype.tpl.php In D7
It should be node--yourcontenttype.tpl.php In D7. In D6 we had node-contenttype.tpl.php. Change accordingly .See here for more details