D
D
DeeUs2022-04-01 15:41:48
MODX
DeeUs, 2022-04-01 15:41:48

How to filter by TV in msProducts (MODX Revo)?

Hello!
How to prescribe filtering by TV, if the condition "is not equal" is required? (the idea is that you need a field that allows you to exclude from the display certain elements that have the "Do not display on the main" checkbox checked)
In the TV settings, in the "Possible values" field, I wrote this: Do not display on the main == 1
if write like this:

the code



Then the filter does not work (the selected element is still displayed)
If you specify &tvFilters= `show_index === 1`, then only the excluded element is displayed (the filter works)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danny Arty, 2022-04-05
@DanArst

For such a task, IMHO, it is better to create a TV like "List (single choice)" and then there will be no such dances.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question