Link to home
Create AccountLog in
Avatar of bogorman
bogorman

asked on

drupal 7 selecting using taxonomy terms

Am developing a site using drupal 7.
Have defined terms within a vocabulary, for example:

Philosophy
       Faith and Science
       Developing Metaphysics
Theology
       Pastoral Theology
               Social Teaching
       Moral Theology

Have created a view and, by using hierarchical select can filter Articles by these terms.
However, I want to have links, for example:

Philosophy
Philosophy-->Faith and Science
Philosophy-->Developing Metaphysics
Theology
Theology-->Pastoral Theology
Theology-->Pastoral Theology-->Social Teaching
Theology-->Moral Theology

With these links I want to select Articles and display them on another page. I understand to do this one has to use the term ID's as arguments:

taxonomy/123/456

How can I determine the ids for each term and is this the right way to do it. I assume I have to adapt the view to accept term ids.

Would value your help
Avatar of darren-w-
darren-w-
Flag of United Kingdom of Great Britain and Northern Ireland image

is this what your after: http://drupal.org/project/views_tree ?
ASKER CERTIFIED SOLUTION
Avatar of nanharbison
nanharbison
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of bogorman
bogorman

ASKER

Thanks, both of you.
nanharbison's solution seems to be the simplest to implement.
mysite/Article/Theology works (had to add /Article - the Vocabulary), but I can't get a two word term to work.
Have tried mysite/Article/Theology/Moral Theology
Also mysite/Article/Theology/Moral+Theology

but neither work.
Where am I going wrong?
Not sure exactly what you are asking, is it something like this https://www.itk.ca/tags/education?

The term is selected from the box at the top, selecting takes you to the term page.

normally in a url a space is represented by %20

You can use the pathauto module to rewrite URLs for you
Hi nanharbison,
Have solved the URL problem with your help. Noticed that on the taxonomy term edit page it gives you the opportunity of creating a URL alias. That solves it.
Think i will give nanharbison the points as his solution seems to be the simplest.
Regards
Brian
Oh oops, forgot about the part of the URL with the type of node!
Thanks for the points.