I have a view set up to display all nodes of a certain content type. I have also set argument of Taxonomy: term on the view. (it is a page display by the way),

When I preview the view on the view editing page by typing in the term in the argument box it works fine.

My question is, on the front end of my site how do I pass my argument to the view?

Thanks

Comments

Anonymous’s picture

Status: Active » Fixed

Arguments are passed to page views through the URL. To make this work, you'll need to edit your page view's path to include a '/%' at the end (i.e. if your view's path is currently 'my_nodes', change it to 'my_nodes/%'). This means that you'll be providing an argument in the URL (specified by the % sign) which in this case will be the taxonomy term.

Once you've edited your path, view the page on the front end of your site and put the term at the end of the URL (e.g. 'my_nodes/cats').
Hope that helps!

probocop’s picture

That makes perfect sense, thank you very much!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.