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

emackn’s picture

Status: Active » Postponed (maintainer needs more info)

could 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?

summit’s picture

Hi,

Yes. If the views argument has a depth of say three, then the alias should pick this up, right?

greetings, Martijn

emackn’s picture

What value does the depth add to the alias? Wouldn't the resulting alias have the same URL?

summit’s picture

Hi, Yes I think so. It will be needed before the url, so the url would be depended on the views settings, right?

john franklin’s picture

Version: 6.x-2.x-dev » 7.x-1.x-dev
Assigned: Unassigned » john franklin
Issue summary: View changes
Status: Postponed (maintainer needs more info) » Active

This 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?

  • John Franklin committed c28ec16 on 7.x-1.x
    Issue #499536 by John Franklin: Support for "Term ID (with depth)"...
john franklin’s picture

Status: Active » Fixed

We 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.