Hi,

We would like to output a custom-formatted node title that includes the date and the post title, separated by a vertical pipe (|).

I had intended to do this for all blog nodes by creating a custom node--blog.tpl.php. However, it appears that the node title is output not in node.tpl.php, but page.tpl.php (at least when we're talking about the page for a single node). But if I modify page.tpl.php, I will be altering the title display for all content types, not just blog posts.

So, what is the right way to modify node titles, on the individual node pages, for a specific piece of content?

Thanks!

-Josh

Comments

shamio’s picture

This module allows you to change titles for Front page, Content, Taxonomy term and user profiles. If you want to have a unique style as title of these sections, i suggest you to have a look at this module. Using this modules doesn't need any changing in template files too and it makes this job easy. http://drupal.org/project/metatag

ergunk’s picture

It can be achieved with only CSS or you could try to use additional modules that can be helpful.

Did you try Automatic Nodetitles or Display suite? Views, Panels and other options can be considered. If you give URL of an example page i could be more helpful.


Mediasaur | http://www.mediasaur.com/en | http://twitter.com/mediasaur


Before asking for help, please read this http://slash7.com/2006/12/22/vampires/ and don't be a "Help Vampire". :)