Closed (fixed)
Project:
Taxonomy Redirect
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Sep 2008 at 11:34 UTC
Updated:
28 Nov 2009 at 13:10 UTC
Hi,
I would like to build a hierarchical website.
What I need is the possibility to set a different view redirect to the depth of the taxonomy/term.
So top taxonomy terms needs to be directed to view "in"
child of top taxonomy terms needs to be directed to view "in_region"
childs of these terms needs to be directed to view "in_place".
So the depth of the terms needs to be used to redirect accordingly.
Is this doable with taxonomy redirect? If not any suggestion how to get this most automated fixed?
Thanks in advance for your reply!
greetings,
Martijn
Comments
Comment #1
agileware commentedYou should be able to do this now by using PHP to create your redirects.
Comment #2
summit commentedHi, thanks for your remark, can you give me please an example how to move further with php and this great module to get the following:
- first depth to country/term
- second depth to province/term
- third depth to city/term
Thanks a lot in advance!
greetings,
Martijn
Comment #3
agileware commentedTry this
This should do what you want. It also covers any terms with depth outside your requirements by directing them to the normal taxonom/term/tid path
Comment #4
agileware commentedCreate a redirect for the vocab you are using, without selecting any terms, and add that php code for the path.
Comment #5
agileware commentedMarked #451598: Redirect according to depth as a duplicate of this issue