开发者

Alter Drupal views argument title substitutions

开发者 https://www.devze.com 2023-03-29 11:05 出处:网络
I have a views with Tid with depth argument. I\'m using this argument 开发者_StackOverflow中文版in page title (\"Videos from %1\").

I have a views with Tid with depth argument. I'm using this argument 开发者_StackOverflow中文版in page title ("Videos from %1"). The substitutions is replaced by the term name ("Videos from PHP" for example). But I need it to be replaced by the range of terms with its parents, if it is child term ("Videos from Computers PHP"). How can I do this?


I think this method will get you on the right track. You will probably want to put this in a preprocess function in your template.php file.

Drupal API

0

精彩评论

暂无评论...
验证码 换一张
取 消