Closed (fixed)
Project:
Taxonomy Menu
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2009 at 15:29 UTC
Updated:
17 Mar 2009 at 03:00 UTC
We love your module, would love to have an option to specify the recursion depth for each menu item created. For example, if site admin selects 'all' as an option, then the url will include the '/all' so that clicking the menu item will return content for the term being clicked plus all content for any child terms.
Should also let the admin specify a recursion depth number, such as '2', so the taxonomy urls would be taxonomy/term/tid/2 telling drupal to go 2 levels deep.
These are just nice to have features when you might find time.
Comments
Comment #1
justageek commentedI think this is already possible from what I read, I just can't figure out how to do it. Sorry.
Comment #2
indytechcook commentedThis is possible. You can use hook_taxonomy_menu_path to alter the path.
See the doc here from some help. http://drupal.org/node/380652. Pay attention to the hook_taxonomy_menu_path section AND the recommendation section at the bottom. There is some info on how to add options.
Please let me know if you need some more help and I can write up a quick example.
Comment #3
indytechcook commentedI was thinking of adding an $options array to be used to create the options on the vocab edit page and create the variables instead of having you do all of the other work. Would that be useful?
Comment #4
indytechcook commenteddo you need anymore help with this?
Comment #5
justageek commentedThanks much, I think I can figure it out from the docs.
Comment #6
justageek commentedThanks much, I think I can figure it out from the docs.
Comment #7
indytechcook commented