We have a view page
(path = /some-path/
) that has an exposed filter
called category
. The detailed view setup is below. How would we hide the exposed filter
if it is supplied from the url
?
View setup:
Filter criteria:
Settings:
Operator
=is one of
(list of all tags term values)Filter type to expose
=single filter
Advanced
- Require relationships for
field_tags
when the filter value is not in the url
-->display all results for the specified field
when the filter value is in the url or default is provided
a.
specify validation criteria -> validator -> taxonomy term name
wherevocabulary = tag
b.
action to take if filter value does not validate = display contents of no results found
c.
case = lower case
d.
more -> transform spaces to dashes in url -> enabled
Expected behavior:
- when
/some-path/
is navigated to, then the exposed filter should show - when
/some-path/term-value/
is navigated to, it will filter the results and hide the exposed filter
Current behavior:
- navigating to
/some-path
, shows all results with the exposed filter displaying allowing a visitor to change it. - navigating to
/some-path/value2/
filters the results and displays the exposed filter.
/taxonomy/term/{id}
? That would make the second View simple.{id}
parameter because we are using the tag value name instead of thetid
some-path/iot
in theurl
, based on the view's setting it would be able to mapiot
to it's{id}
and do any filtering?/node/{id}
just like taxonomy system paths are/taxonomy/term/{id}
. So perhaps the first path you can fake out with a Views page at that URL, and then customize the taxonomy view URLs... the TVI module sort of solves this problem I believe.