I have a node type news with a taxonomy reference (news categories). And I have a view for the news. In this view I have a contextual filter by this categories. The category comes with the url.
In this view I need a rendered entity (node type “views header”) within the view header. These node type also uses the taxonomy “news category”. At this point all works fine.
BUT: for every news category I need another entity within the view header.
This approaches I have:
- Adding all nodes of type “views header” in the view header and filter them in the same context as the view itself. I tried if it is filtered per default with the view context filter but is does not.
The BUT here: I don’t know how. How I can filter the nodes in view header. Is there a module for it which I didn’t find?
- Publishing the view header nodes as blocks. Adding the blocks in views template and configure the block visibility settings pages/only the listed pages. This solution works but I think there’s too much overhead.
Does anyone know a more elegant solution?