how to make a filter on a view be on the result of a select query


I'm pretty sure Drupal 8 does this out of the box when you expose the field as a view filter. The drupal 8 documentation for Views and it's Filters is clear on how to set this up and I believe a Select list is possible with if your field is an integer or a date limited to a Year component.

Tags: Views / Drupal 8

Similar questions

Filter a view result by matching a view field to a URL term
I have a content type called "Post" which contains two fields: 1) title 2) username I created a View which creates a block that gathers all Posts. The block will reside on a user's account page, wherein the URL will always be: How can I filter that block to only show the results where the username field matches the seco...
how to fetch result into array or how to fetch 'nid' out of result?
Good day to everyone! some help needed with fetching result out of EntityFieldQuery. Have a unique value of the field. I try to get 'nid' of node by value of the field with help of EntityFieldQuery. my problem is that i dont know how to fetch result in a right way to get just 'nid'. then knowing nid i will be able to load the node and do some work ...
Display suggested search result on search page if search result is empty
There are any way or module to display search result from suggested keyword on search page if search result is empty. just like google search, But result should come from my Apache solr system.
How can I add RDF result from opencalais into apache solr for better search result in my Drupal site?
Add RDF result from opencalais into apache solr for Indexing. I am using solr search integration module's development version(solr 4.x), Opencalais module and Drupal 7. Currently Indexing from taxonomy fields generated by opencalais.
How to populate select field from View result like in
In a custom content entity, I have defined this field In the corresponding form, the field appears as wanted as a dropdown list populated with the result of the View sel_selistes: I'd like to create another form with the same functionality. How should I code the field in the form?
View query result
when i created view it shows the result and and the query in a preview and here is the query there is a field that hold the image value i think (field_data_field_image_node_entity_type) but when i loop the result it does not display image value inspite it displayed in view result preview how am i get this value of image to display it rather than us...

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.