Answer the question
In order to leave comments, you need to log in
TV list with multiple choice - how to filter?
Good, Habr.
MODx Revo has a TV parameter of the type "list - multiple choice". In principle, the whole appeal is clear. It is not clear how to filter with multiple selection.
I tried to output directly and see what happens, however, with the choice options: понедельник==1||вторник==2||среда==3
and the choice, for example, "Monday" and "Tuesday" - 12 is displayed.
How to filter such a TV when outputting, if it stupidly connects the options into a string?
Thanks in advance for your replies...
Answer the question
In order to leave comments, you need to log in
when creating tv in the "output options" tab, add 'output type' - 'separator', well, set any separator that will separate the values in the created string
There is a TagSaver plugin for MODX Evolution. On its basis, the development of the TagFaster component was started . There is no documentation and a ready-made transport package, although I wrote the builder. Here is an example of system settings for a component. And here is an example of filtering by vornik for you:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question