[DUG-TO] Custom node/add and node/edit page titles

Andre Molnar andre at becircle.com
Thu Dec 4 14:40:56 EST 2008


Are you looking for drupal_set_title()?

Its just a question of using the appropriate _hook to decide where in 
the code you want to set the title.

psuedo code -
if $form = tomato_node_form drupal_set_title('throw a tomato');

andre
Design Guru wrote:
> *Also just posted at http://drupal.org/node/342750
> 
> Hey all,
> 
> I've been searching for days for an approach that actually works - its a 
> shame that this isn't a simple option when editing each node type from 
> the regular drupal admin side but...
> 
> ...I'm looking for a snippet to throw into my template.php which will 
> let me specify a custom title atop a node submission/editing page per 
> content type; so instead of 'Create Tomato' I could specify say 'Throw a 
> tomato at us' when a user is looking @ the node/add/tomato page.
> 
> I'd love to know if there's an approach to use for both drupal 5 and 6 - 
> if they aren't the same then I would super appreciate snippets for 
> both... I'm surprised to not have found this info anywhere in the 
> handbook...
> 
> Thanks,
> 
> q./
> 



More information about the DUG-TO mailing list