Hi,
Can you manipulate the look and url of different taxonomy depth levels with this module?
Thanks a lot in advance for replying!
Greetings,
Martijn
Hi,
Can you manipulate the look and url of different taxonomy depth levels with this module?
Thanks a lot in advance for replying!
Greetings,
Martijn
Comments
Comment #1
nicholasthompsonI dont think so, although I'm not 100% sure what you mean. Sounds a little "pathauto"-ish...
Comment #2
summit commentedHi Nicholas,
Thanks for your quick reply!
I do not know a setting with pathauto to be able to set a different path related to the depth of the term? Do you know a setting or token or something for this?
greetings,
Martijn
Comment #3
nicholasthompsonSorry if I'm being dense - but I'm still not entirely sure what the issue is.
Do you have a practical example?
Comment #4
summit commentedHI,
I will explain my usecase, than hopefully you can help me.
What I would like, is to be able to change "taxonomy/term" to a different path by taxonomy depth:
So on Depth 0 : instead of "taxonomy/term" an own path; say "in"
So
- on Depth 1 : instead of "taxonomy/term" an own path; say "in-region"
So
- on Depth 2 : instead of "taxonomy/term" an own path; say "in_place"
"ïn", "in-region" and "in_place" are panels/pages with I can let show content through views etc with arguments like taxonomy term names.
So for example. I build a panel with the name "in_place".
Then my path should show.
in_place/trekking/nepal where trekking and nepal are terms
(instead of taxonomy/term/14/15 (14 TID trekking/15 TID nepal).
My views argument handling codes builds from the termnames trekking and nepal the right views.
But the great part is that than on Depth level I can build different templates (panel-pages). Which is what I am looking for.
This way a hierarchical website solution starts to emerge!
greetings,
Martijn
Comment #5
nicholasthompsonHmmm Taxonomy Enhancer wont do this. It simply allows you to attach other data in a more general sense to a term.
What you want, it sounds like, is the hook_term_path. Go to the vocabulary and change the module field to "my_module". Create your "my_module" and implement hook_term_path (undocumented). This hook gets the term object passed to it.
In your implementation you return the path you want to associate to that term. Checkout taxonomy_term_path.
So in your example you could investigate the term passed to the function for its position in a heirarchy based on your own logic and finally return the path of your choice.
Comment #6
summit commentedHi Nicholas,
Do you may be have a more coding example please?
What do you mean with go to the vocabulary? in which module please?
Are you referring to something like: http://drupal.org/node/192493#comment-633741
Can you explain to me how I get depth level support in such a snippet?
Thanks a lot for your support, I am looking for this for more than a year now, so all help very appreciated.
greetings,
Martijn