Closed (fixed)
Project:
Content Templates (Contemplate)
Version:
5.x-1.7
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Sep 2007 at 14:53 UTC
Updated:
26 Oct 2007 at 23:01 UTC
Hello!
I have an cck field, containing content, to be shown BEFORE the title of the node (also for the teaser).
I didn't get the trick to change the titles postion wit contemplat. Is that possible?
Or perhaps to disable showing the title?
Comments
Comment #1
jjeff commentedThis module is only able to alter the $content variable that is sent to your node templates (in your theme). These templates usually output their own $title variables separate from the $content. However, it is possible to change (or create) the appropriate node-[type].tpl.php file in your theme and have it NOT output the title. Then add the title into your ConTemplate template and have it output in the right place.
Keep in mind that by default, the page.tpl.php handles output of the node title on single-node-view pages, so you may want to deal with that too..
Comment #2
Hunabku commentedOne way I have found to control placement of the title, is to first suppress it in "template.tpl.php", and then use contemplate to put it where i want. see http://drupal.org/node/138910
Comment #3
florianr commentedThanks for your help, and the link, that should work for me!
Comment #4
florianr commentedWhat I did was the following:
1. create a page-nodetype.tpl.php file, only calling $content
2. Create the templates with contemplate
... Works fine for teaser and page ...
Comment #5
(not verified) commented