Drupal-8

Drupal 8 Dynamic Dependent Views Exposed Filter Dropdowns

Drupal 8 Dynamic Dependent Views Exposed Filter Dropdowns
I recently needed to make a Drupal-8 view with the exposed filters filtered by the existing filters so there are no zero results pages available.Here's the PHP for that, you'll also need to target your filter form and add an on change event to submit the filter form else you can still get the no result pages.My view is a view of content teaser with 3 referenced vocabs on the content type.Firstly I duplicated the entire view and called it the same as the first on with "Count" on the end and changed it to have no limit to the number of results returned and also to just return fields and only the title field.This was because without it I wasn't getting the full list of terms I could filter byAl
Subscribe to RSS - Drupal-8