I’m trying to override a node page’s title using drupal_set_title(...) but am a little unsure of where I should be calling this method.
Currently I’m calling it in theme_preprocess_page(...) but it seems to be being overridden after I’ve overridden it and is being changed back to just the node’s title.
I’m presuming there’s another hook I can use to call drupal_set_title(...) to prevent my custom title from being overridden? Or maybe there’s another way around this particular problem?
Any help would be much appreciated.
trydrupal_set_title()insidetheme_preprocess_node()hmm, doesn’t work.
You can set
$vars['head_title']insidetheme_preprocess_node(), this will definitely work.drupal_set_title()will work if placed insidenode.tpl.php