I'm trying to change the title of the 'View' tab to the name of the current page, using the sympal theme. I've tried to do this by setting a global with the new string value in _phptemplate_variables "page" case statement, but no dice: dumps of $GLOBALS show the new vars no where.

Does anyone have an idea how to set the title of a local task item to some property of the node being viewed?

Thanks,

Ethan

Comments

pwolanin’s picture

One option is to use the locale module: http://drupal.org/handbook/modules/locale

Another option - you could intervene by overriding this theme function:

http://api.drupal.org/api/5/function/theme_menu_local_task

or try some creative use of: http://api.drupal.org/api/5/function/menu_set_location perhaps in conjunction with hook_nodeapi()

---
Work: BioRAFT

ethanw’s picture

Thanks for the pointers pwolanin.

I couldn't get theme_menu_local_task to do my bidding as I couldn't figure out how to get information on the current node/page while inside the function.

menu_set_location looks very promising though, and a VERY good function to know about.

Cheers.

--
ethan winn
http://www.destratify.com/

--
ethan winn
http://colab.coop