I have a view with a menu tab link and an attachment, which displays rows of other nodes, depending on the contextual filter.
This view has a custom path(/node/%node/view-custom-path).
How do I show the menu link only when the following conditions are met?
- The node has some taxonomy terms
- The view attachment is empty
I have already set the needed term as filter criteria, but the link ignores it and it's shown everywhere. I can display an empty message and send 404 headers when the view is empty, but how can I hide the link as well?
I tried using basic validation in contextual filters and setting Hide view or Show page not found, but that didn't help.