i have a taxonomy "Location" and "Section".

Example

Terms under Location:
================
Arizona
California
Delaware
...

Terms under Section:
================
News
Entertainment
Politics
Sports
...

how can i configure Pathauto.module or some other method to generate URL such as "www.mysite.com/some-location/some-section/some-titles" ?

ex: www.mysite.com/california/sports/some-sport-titles

thanks,

vsotto

Comments

keith_k’s picture

You don't really need pathauto. Just set up a page using Views 2.

First argument: term id for terms in Location. you can allow it to take valid term names as well as term ids
Second argument: term id for terms in Section

A nice trick is that, in the argument setup, it can fall back to a list of terms if you didn't enter one or id doesn't validate. That is, you get a list of sections that have california content if you only enter
www.mysite.com/california/

I got the basic idea from this great screencast, although it's a little old:
http://drupal.org/node/247205

keith_k’s picture

Sorry, I may have read your question wrong. I though you were looking for a list of nodes in california sports.

If you "some-sport-titles" is the title of your node, you would use pathauto. See the video.

vrsotto’s picture

:( i wanted to generate URL base on those terms by Vocabulary(Taxonomy), not the kind of method the video tutorial discuss - thanks for the response though...

dalegrebey’s picture

I'm not too sure about the video you mentioned, but this is how I've made it work for my needs.

In Views 2 I create a Page and a Block.

  • For the Page >> Information I set a Path (mysite.com/picka/pathanypath). This insures that there is a recognizable path in the first place.
  • Than I create a block with a view into whichever data it may be that I want to have displayed.
  • I setup a page-urlalias.tpl.php for the picka/pathanypath that I created in Views
  • Than assign my block to the appropriate region and print that region and its block in the corresponding template file (page-picka/path.tpl.php).
vrsotto’s picture

i've been searching the .net for at list near solution but found none... :(

vrsotto’s picture

hello guys... this has been solved already... i just forgot to update this thread. the solution can be found here: http://drupal.org/node/573538