Question

i want to make something like the blocks on www.kickstarter.com/discover/categories/art that is the content of the block changes per term ( display featured node of the selected term only)

i'm using views 3 and manged to do the block but i'm facing difficulties in applying the dynamic filters ..

any idea on how to do that? am sure i'm just missing a small configuration :) thx in advance

screenshot

Was it helpful?

Solution

In your view's edit page, find "Contextual filters" under "Advanced" section, then click "Add"

1- Form the list, choose "Content: Has taxonomy term ID" and click "Apply"

2- Setup the configuration you need then click "Apply"

Now you are able to filter the results by the term id. for example "your-page/3, your-page/4, your-page/15) where (3, 4 and 15) are term IDs.

EDIT: Well, In filter settings form under When the filter value is NOT available, choose Provide default value then Raw value from URL and Path component choose 3 (We had to choose the number 3, because the pages you are trying to show them into are under taxonomy/term/[tid])

Hope this works... Muhammad.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top