Hi there,
I want to deactivate the title-link in the teaser view and therefore disk-based contemplates seems to be the best solution. I use Drupal 5.12 / Contemplate 5.x.2.04.
So when duplicating the "node.tpl.php" to two new files: "node-myContentType-teaser.tpl.php" and "node-myContentType-body.tpl.php". And placing them in a directory sites/contemplates all seems to be correct in the admin-section:
"This template is being read from
sites/all/contemplates/node-myContentType-teaser.tpl.php
Please make changes to this file or remove it to continue editing here." The same with body!
But in the node view It seems to be a node in a node. The title is printed again and the teaser appears as a node in a node with some text "Array" instead of the real node?!?
I tested placing the file as "node-myContentType.tpl.php" in the theme-directory. This seem to work easy, but I can't distinguish between teaser/content.
What about this disk-based feature. Is this really tested with the use of custom themes / the path sites/contemplate. Please help...
Comments
Comment #1
konse commentedWow. Ok. Sometimes writing an issue solves it by the way!
For deactivating the title-link, and customizing content templates (body/teaser):
1. duplicate the node.tpl.php in the theme direcotry to node-myContentType.tpl.php
2. change the file node-myContentType.tpl.php to your needs (for example remove the title-link)
3. create your different content template for body/teaser easy in the admin section
4. have fun :)
So I wonder about any advantage of disk-based content templates as described in the readme?!? For me there is no advantage at all, because they doesn't replace the node.tpl.php!