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

jjeff’s picture

This 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..

Hunabku’s picture

One 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

florianr’s picture

Status: Active » Fixed

Thanks for your help, and the link, that should work for me!

florianr’s picture

What 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 ...

Anonymous’s picture

Status: Fixed » Closed (fixed)