[support] Change title of View Tab on a node page

Mukesh Agarwal mike4u4ever2001 at gmail.com
Thu May 27 04:27:29 UTC 2010


Hi,

I'm trying to change the title of the menu item "View" on a node page.. I
want to change the tab name to be the title of the node (with an ellipsis if
it goes beyond a limit).. This means the title of the tab here will be
dynamic.. I've tried using hook_menu_alter and tried to change the title of
the menu item 'node/%node/view' with some code.. I tried 3 ways -- one, get
the title using a query with arg(1), two, by page_get_title, and 3 by
menu_get_object to get the respective node and then the title.. None of the
approaches has worked for me.. If you guys know a quick solution, that would
be wonderful.. I dont want to change it via tpl for sure..

PS: I've also tried hook_menu_link_alter but it did not work

Cheers,
Mukesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20100527/db374154/attachment-0001.html 


More information about the support mailing list