I know this is pretty much similar to http://drupal.org/node/1115798 but that issue was about node links.
What is on my mind is being able to assign active classes to a taxonomy term link when a node tagged with it is being viewed.

So let's say I have a taxonomy term view with a block display, meant as a navigation menu. The links are using aliases.
When you click a term link, you get a list of all nodes tagged with a link. Then clicking a list item (= a node) opens that node. And that's the moment when the block should set the appropriate term active.

So I think Views UI should have a way for a site builder to define the match criterion for active class:
a) by exact aliased path (by val) - viewing a node with URL alias projects/category-1/subcategory-1-1/project-a.html should hilite the item with links projects, projects/category-1 and projects/category-1/subcategory-1-1
b) by term linkage (by ref) - viewing a node tagged with taxonomy term reference field(s) (regardless of the URL alias pattern) - should hilite all links equal to that term's alias. So, if the term has alias projects/category-1 and the node is viewed at alias projects/movies/my-latest-project.html - the term should be hilited even though the strings do not match at all, yet there is an internal linkage between the entities.

So, when thinking of the UI, I would imagine, that the checkbox "Link this field to its taxonomy term page" might reveal nested "Active trail" fieldset which would let you select either option. In order to use a term reference field, one would have to first select it and exclude from display, so to make it available for referencing. And this is how the block (when built on page load) would mark its linked items as active. I think this makes sense.

Comments

MustangGB’s picture

Status: Active » Closed (outdated)

Closing this as outdated, feel free to re-open with updated details if it's still a problem in the latest release.