Closed (fixed)
Project:
Taxonomy Menu
Version:
6.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Apr 2009 at 18:41 UTC
Updated:
9 May 2009 at 12:40 UTC
I have created a custom view. I started with a clone of the default taxonomy view that comes with views2. The path set in the view is "/products/%".
I have entered a custom path in taxonomy menu: "products"
Hierarchy path is still the default: category and path depth is empty.
I want to show descendants, but in the view title appears:
"parent item + child1 + child2 + ..."
I only want the currently selected item = parent item in the title.
What settings in views and taxonomy do I have to change?
What means vid and tid?
Thank you!
Comments
Comment #1
hexabinaerI am struggling with similar questions but maybe what I found out so far is helpful for you:
Uncheck "Display descendants" (first I thought this would hide the terms in the lower hierarchical levels from the menu - but in fact this option reduces the presented nodes to the selected term only, no descendants' nodes, title accordingly)
I haven't found out yet how to provide a custom title on the top level but at least with the above changes and a custom title "Topic: %1" in the argument configuration for "Taxonomy: term id (with depth)" there is no title at all now.
Am I right that the collected term ids (/taxonomy/term/5 2 1 24 22) are interpreted as a single argument? Next I'll try to find out how to set a custom URL for the "Item for Vocabulary" option...
PS: vid = vocabulary id, tid = term id (list available in collapsed containers in automated alias settings)
Comment #2
tomsm commentedIndeed, but I want to display descendants ;-).
I also think that the collected ids are interpreted as a single argument.
Comment #3
ksc commentedHi Tom,
you can´t change the title in TAXONOMY MENU but there are various ways together with VIEWS:
1) In VIEWS edit the argument "Term ID" and give it a title like "Products" - that will be the title for the whole branch then. This will work with "Display Decendants" option.
2) In VIEWS edit the argument "Term ID (with depth)" and give it a title like "%1" which means the first argument will be the title. Select depth = "number" where the number (p.e. 3) reflects the depth of your hierachy. Now go to TAXONOMY->Products and Disable "Display Descendants" and rebuilt the menu.
Descendants will be displayed (through Depth=number), the title for vocabulary will be "All" and the titles for terms will be the term name.
2b) Same could be done by setting VIEWS path=products/%/%, have Term ID (with depth) and "Depth Modifier" as argument - and set in TAXONOMY MENU Display Depth="Number" (p.e. 3) and rebuilt the menu. Now TAXONOMY MENU uses two arguments.
3) You could change your template for the view.
More features will be available in Version 3 of TM.
Klaus
Comment #4
tomsm commentedThank you Klaus,
I chose option 2 and it works! :-)