Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By charlie charles on
Hi
I'm not using using a taxonomy term menu block in a sidebar.
I'm using unordered list of generated using a view
I have filtered content type i.e "news"
I have term tags on each item
When some one clicks on a tag term.
I want it to filter the for only sport news items i.e
site.com/news/sport
instead of
site.com/sport
How can I make the term
pass the content type url?
Many thanks for your help
Comments
It sounds like you want to
It sounds like you want to use an exposed filter instead.
Thank you for your reply
Thank you for your reply nevets.
I've already got a exposed list filter.
I really need the tag method for this project
is there any way to do this with drupal
with views or another module please?
Your view will need a page
Your view will need a page display and a path (I am going to assume the path is 'news') that accepts an optional taxonomy term as an argument. In you view that creates the list you are going to need to use the "Rewrite results" section for the taxonomy field and check "Output this field as a link" using something like "news/[field_color] " for the link path (You would replace [field_color] to reflect your field name). Also, note you want to use the plain text formatter for the taxonomy field.
Thank you nevets
Thank you nevets, that's great!