0

I would like to add a list of taxonomy "links" within my view so when ever a user clicks a specific term, only nodes tagged with that term will show up in the view.

Is there a module that can create a navigation of taxonomy terms within a view, to filter for specific nodes?

1 Answer 1

0

There is no need to install module. create a field of taxonomy terms, in the view create a contextual filter of that field and it will work.


To create a navigation you need to loop through the taxonomy terms. it is something like this code. I am not able to execute the code right now to give you the exact code but using Devel module and looping (foreach)throught the objects you can get the terms and use them to build the navigation.

$name = 'YOUR_VOCAB_NAME';
$myvoc = taxonomy_vocabulary_machine_name_load($name);
print kpr($myvoc);

This code will print out the list of terms and their properties.

4
  • Well thanks in first place, but how to create a navigation providing the taxonomy terms?
    – user39280
    May 25, 2015 at 19:18
  • @fubbe I updated the answer, I will you give you the exact code n a few hours
    – M a m a D
    May 25, 2015 at 20:01
  • You don't have to, I got it from this point on! Thanks a lot
    – user39280
    May 25, 2015 at 21:01
  • @fubbe If you think this answer is useful, mark it as accepted for people who visit your question in the future
    – M a m a D
    May 26, 2015 at 4:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.