Ok, this might be something simple but i can not figure out how to do it...except manualy
i have a vocabulary with the following terms:
BrandA
--modelA
--modelB
--modelC
With pathauto i can create an allias like "brandA/modelA" which will point to taxonomy/term/termid_of_modelA
Now i create a view with url and i want to use this view to replace the taxonomy/term

So at the end i want to have an alias like "brandA/modelA" which will point to /termid_of_modelA
how this can be done automaticaly
So far im using pathauto to create the automaticaly the alias "brandA/modelA" and then edit to point to /termid_of_modelA
Taxonomy redirect will not work cause it will redirect the taxonomy/term/tid to /termid_of_modelA and i dont want the name of the view to be seen on the url.

Any ideas?

Thank you in advance

Comments

krunar’s picture

this must be the stupiest question in the forums
i must be getting old...and stupid
The answer is obvious and in fact i have use it before...give the view the url

beekerstudios’s picture

So for me, I have term vocabs for different things. Most of my terms are part of an overall encompassing pool of terms. While the latter pool of terms are part of a specific section on the website.

For example I have news articles, video nodes, events, etc.

So the URL's for those nodes are as such:

www.example.com/news/news-article-oranges
www.example.com/news/news-article-apples
www.example.com/video/video-node-oranges
www.example.com/video/video-node-apples
www.example.com/events/event-node-oranges
www.example.com/events/event-node-apples

Now all of these terms have url aliases for terms like this:
www.example.com/search/topics/apples
www.example.com/search/topics/oranges

All you see in the above listings are the titles of the node, and the node type (video, news, events).

Now the problem arises when I want to format the listing of terms for the bulk of my terms, via views, and then I want to format a different vocabulary of terms in a different way. Or output different fields for a different set of taxonomy listings.

So now I have a pool of terms in a different vocab, for a specific node type, let's call it User Profiles.
www.example.com/specific/profiles/darth-vader
www.example.com/specific/profiles/luke-skywalker
www.example.com/specific/profiles/chewbaka-wookie

etc.

Darth, and Luke have terms attached to their user profile, called "Star Wars", and "Dark Side". Now instead of listing just the title of their user profile node, I want to show a picture of them, and then also show a short description of them (much different than just a title and the type of the node, and since the node type is all one type it's pointless).

So at:
www.example.com/specific/profiles/star-wars
www.example.com/specific/profiles/dark-side

Pathauto will automatically force url aliases to /taxonomy/term/123, but I could easily make a view that functions correctly at /specific/profiles/123, so why can't pathauto also "craft" a url src that points to a functioning view.

So instead of just building a pathauto Destination (dst in the DB) setting like:
specific/profiles/[cat]/

You would also insert a Source (src in the DB) setting:
specific/profiles/[tid]

Unfortunately this is not possible, and to get this functionality you have to build url aliases for the taxonomy terms manually, which is a killer.

beekerstudios’s picture

Actually I CAN NOT build an alias, that works correctly.

I can build a view that works correctly, but the list of terms via tagadelic or anything like that doesn't get pulled out, it directs to the taxonomy term url.

but........AAAAHHHHHHAAAA!

In the middle of writing this comment, I was listening to this:
http://www.lullabot.com/audiocast/podcast-48-taxonomy-taxonomy-taxonomy

And found this:
http://drupal.org/project/taxonomy_redirect

I wish it didn't cap the term names, and it seems like pathauto can't over-ride the tid, so it's one or the other. But at least I am outputing my taxomony listing correctly.