Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.3
Component:
taxonomy data
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Mar 2009 at 13:51 UTC
Updated:
23 Sep 2010 at 02:06 UTC
I am using taxonomy_term view to have more control on visualization.
I would like to know if there is a way to change the title of the view page.
Actually, if I call the following link:
http://mysite.com/taxonomy/term/13%2014%209%202%203%2010%208%2017%206%20...
It shows correctly all the terms, but it sets the title as "title1 + title2 + ..." (titles of the terms separated by a plus sign).
Can I change it to a fixed string (i.e. "Products")?
Thanks for help.
Comments
Comment #1
merlinofchaos commentedSure, set the 'title' of the field to Products. Now, if you want something more dynamic, there is a way to do this with PHP code in the argument validator, but it's a little tricky to do right. But you can set...I think it's $handler->validated_title and that will be used for the % replacement in the title field.
Comment #2
tomsm commentedThank you for the information.
Can someone please help me with the PHP code?
My title is: parent item + child1 + child2 + ....
I only want to show the parent item in the title without the children?
I have solved the problem. Thanks
Comment #4
-Mania- commentedLooking for the same thing. @tomsm: You could have pointed out how you solved the problem!
edit. Found the solution at http://drupal.org/node/443110 which seems to be what worked for tomsm as well.