By xgonzalo on
Hello for all!!
I have a little difficult to understand these resources since I've started with drupal:
Here is my problem:
I need to make that:
3 Sections or Categories (I dont know how to name this):
- With kids
- With Family
- With myself
inside each one I'll will have posts and 2 submenus for filtering these posts:
- Destinations (can be)
- Argentina
- England
- United States
- Brasil
or:
- Activities:
- Snow
- Beach
Now I have 3 vocabs created, with the terms inside.
How can I make a view for show the content for "with kids" with a sub menu containning the terms of Destinations and make these links filter only the posts in "with kids"???
Please can anyone help me?
Best regards,
Gonzalo
Comments
Use filters
You need to set at least three filters on your view (you should have one for the content type already).
The first would be on your category to select 'with kids'. This filter would not be exposed. The other two would be on your other two taxonomies, 'destination' and 'activity'.
Expose these filters so that users can choose what they want to see. You can control whether they must make a selection and whether single or multiple choices are allowed.
So in pratice
Hello sszalla!
Ok I have one content type, 3 vocabs.
First I create one view for "with kids",
And how I create a menu with the list of destinations and activities?
With a view, in this view I put the exposed filter? Other problem I had is when I have two or more articles or pages asignated to one term, the term repeats in the list of link(terms ) for destinations.
Thanks!
Exposed filters on same view
You've created a filter to restrict the view to "with kids", right?
Then create two more filters on the same view, one for destinations and the other for activities, with "Is One Of" as the operator and the full set of vocab terms selected. Make them exposed.
In the Exposed Filters section uncheck Optional and Filter Settings Default and check Force Single and Lock Operator. You will then get two droplists at the top of your view, one for your destinations and the other for activities with the first value in each selected by default, and a Submit button. You can then change the selection and press the Submit button to refresh the view.
sszalla
Clean Energy Connect
Thanks, will try!!
That worked fine for me.
Thanks again!