Answer the question
In order to leave comments, you need to log in
How to display multiple choice field in modx?
Hello.
Tell me how to display a TV field with a multiple choice, in which the values \u200b\u200bhave a key and a value.
for example, this field: site1==url1.ru||site2==url2.ru||site3==url3.ru||
How to display such a field through &tpl, i.e. get it at the front, call the output template, specify placeholders in it
Answer the question
In order to leave comments, you need to log in
Hello.
For TV, you can specify in the TV settings what you need in the "Output Options", for example, a separator or an html tag and it will be displayed on the front accordingly.
For multiple TVs, it's better to use MIGX if you need more complex data than just the TV value. More details - https://cat-art.ru/blog/slajder-migx-istochnik-faj...
In general, placeholders are for snippets, there is no such thing in TV. Of course, you can write a snippet that will take all TV parameters and use placeholders - https://modx.ru/vopros-answer/info/221/, but this is too much.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question