Drupal6:动态更改菜单链接标题
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Drupal6:动态更改菜单链接标题相关的知识,希望对你有一定的参考价值。
This goes in your template.php file
<?php /** * Implementation of phptemplate_preprocess_page() * Variables available in page.tpl.php can be overriden from this function. * They are referenced in the array $vars * * This example shows changing a title of a link in the primary nav menu * I suggest print_r() the $vars array and explore its contents * (this snippet belongs in the template.php file and remember to clear your cache */ function phptemplate_preprocess_page(&$vars) { $vars['primary_links']['foobar']['title'] = 'My Member Page'; } ?>
以上是关于Drupal6:动态更改菜单链接标题的主要内容,如果未能解决你的问题,请参考以下文章