Printing Regions in Views in Different Places Using the Same Template
We had a case where on some views we needed to print the header above the exposed filters and on others we needed to print the header after the exposed filters. Here's my simple solution.
This is rather simple, in my views template (list.twig I call it, as I am using PatternLab), I created the following:
Now, in my corresponding views template in Drupal - views-view--search.html.twig - I just use that template and set the header_after_exposed variable to true.
If you like what I write, you might like to follow me on Twitter @markconroy
Follow @markconroy
Add new comment