Closed (fixed)
Project:
View Alias
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
23 Jun 2009 at 09:47 UTC
Updated:
23 Oct 2015 at 00:54 UTC
Jump to comment: Most recent
Hi,
With views using the "Term ID (with depth)" argument this module is not yet working.
Please also make this module support the Term ID (with depth)" argument.
Thanks a lot in advance for considering this!
Greetings,
Martijn
Comments
Comment #1
emackn commentedcould you provide more info on the use case. Sounds like you just want view_alias to pick up views that use the TermID (with depth) OR TermID. There is no expectation that a Term ID with depth is useful to the alias right?
Comment #2
summit commentedHi,
Yes. If the views argument has a depth of say three, then the alias should pick this up, right?
greetings, Martijn
Comment #3
emackn commentedWhat value does the depth add to the alias? Wouldn't the resulting alias have the same URL?
Comment #4
summit commentedHi, Yes I think so. It will be needed before the url, so the url would be depended on the views settings, right?
Comment #5
john franklin commentedThis is how I think it would work. The depth argument determines how many parents up the chain to include in the URL. That is, given a taxonomy with term 'Foo' (tid 1), 'Foo' has one child term 'A' (tid 2). and 'A' has three child terms 'alpha', 'beta', and 'gamma', (tids 3 - 5, respectively), then a term argument with depth 1 would generate the following URLs:
* my-page-view/1 => my-page-view/Foo
* my-page-view/2 => my-page-view/Foo/A
* my-page-view/3 => my-page-view/A/alpha
* my-page-view/4 => my-page-view/A/beta
* my-page-view/5 => my-page-view/A/gamma
I'm not sure what negative depths would do. The same? Reverse the order of the terms?
Thoughts?
Comment #7
john franklin commentedWe leverage the taxonomy term tokens to generate the paths. For parent terms, there isn't a token that limits itself to n parents. What is available is [term:parents:join:?], so we use this to add ALL parents whenever the depth is non-zero with the token string:
my-page-view/[term:parents:join:/]/[term:name]I'm going to mark this closed and open up additional feature request issues to cover everything else.