How to display nodes of specific terms and expose only those terms to the user (out of many other terms)


Here is a setup that does not seem to create any trouble. The country is a taxonomy term field attached allowing only 1 country to be specified per node.

When the filter is exposed you can specify the countries to be displied/filterable and you can also limit the list to those countries

Here is a working setup

enter image description here

and here what you will see vising the page of this view

enter image description here

only the specified countries are displayed and it works as it should

An exposed filter has no effect by default, so your simplest solution is to add another filter that is not exposed that limits the view to just the countries you want.

It's a useful trick with views to combine exposed and not-exposed filters and sorts.

Tags: Views / Drupal 8

Similar questions

Views: expose filter - filter out results between a specific set of dates
I have a views (content type = car, Create date filter"exposed" and some fields to display in the result in a table). is there any way to display all the node not created in the date that selected using the filter? Thanks
Many views for many taxonomy terms
I need some help with the taxonomy view. How can I create many views for many terms ? I want that many terms from different taxonomies terms point to different views or at least to different structures of the same view. The problem is that drupal translate each link of all taxonomy term to the model taxonomy/term/% that makes that all taxonomy ter...
How many taxonomy terms are too many?
I have a website where I publish book reviews. For each book I publish 2-3 quotes from the book. I'm using the following fields as taxonomy, so that when a user clicks on them he/she can find more content of that category. Lets say, over the period of time, I add reviews of about 5000 books, then there will be 5000 taxonomy terms for "book name". S...
Views one to many relationship, display many records in columns
I have a View with a one to many relationship. ID and Session are in my main table, and "mark"'s are rows in a custom table. When I look up a single ID, I get this result because of the 'many' results in the custom table. ID | Session | mark 15 | Spring 2013 | 16 15 | Spring 2013 | 3 15 | Spring 2013 | 5.5 My desired result is: ID | Session | mark ...
Two sort criteria. How to display first those with a specific List (float) selection
i have a View that provides a list of products(content type Product). This view has two sort criteria. The one is the "SKU" and the second is "New product". The "New product" is a List(float) field and the available options are N/A, Yes and No. The view must show first the new products and then all the rest. New products are considered those that t...
Allow user to flag only those node that associated to a particular term of a vocabulary?
I have content type "product" term referenced by Taxonomy "Product category" having terms -Cook tops -Heaters -Chimneys Now if i flagged nodes associated with term "Cook tops" , after that if i flag node associated with "Heater". I should get a error message. Actually I am using this flag to show flagged item in BASKET(as done in many shopping site...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.