Posted by nakes on November 16, 2012 at 2:06pm
I can't seem to find a solution that works for me. So i'm hoping someone can point me the right direction.
I have a news site that uses the basic Articles content type and a taxonomy term reference field for the location(Country) of a news article.
Users have the option to register where they can indicate their country also by the same taxonomy term reference field as the news articles.
All I need is to create a view that shows them teasers of news for the country they selected during registration.
Anyone know how to do this?
It would be even better if we can automatically determine the user's location to show them news for their location but at this stage it's not essential.
Comments
Anyone tried this or
Anyone tried this or something similar before?
---
I did something similar with creating one block to display "related content" based on the page (which had the same taxonomy term). Here's what I did:
Set up a block view.
I added filters for published nodes, as well as selecting the content type of the nodes I want to display.
Then under advanced, I added the contextual filter: Content: Has taxonomy term ID.
Here are the settings.
Place your newly created block in that region and you should be good to go!
If there are no terms that match your block won't display. If you'd like it to say something you can go back into the view and add "no results behavior".
I've tried various possible
I've tried various possible options... but settled on an exposed view that remembers the user's last selection...