A
A
AJ2013-09-12 19:37:40
MODX
AJ, 2013-09-12 19:37:40

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

3 answer(s)
N
Nikolai, 2014-10-17
@blobomule

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

E
Evgeny Borisov, 2013-12-06
@Agel_Nash

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:


Assuming the TV parameter is called Category.

K
krontill, 2014-02-02
@krontill

bezumkin.ru/sections/help/2561/#comment-21179
I recently asked the same - "TV lists are supported out of the box." (mFilter2 ).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question