A
A
Alex2019-04-11 16:37:03
MODX
Alex, 2019-04-11 16:37:03

How to write a condition on the value from the List (multiple choice)?

Good afternoon there is a TV List (multiple choice) with the values
​​Name1==Name1||
Name2==name2||
Name3==Name3||
Title4==Name4
How to wrap in an a tag with a specific class if, for example, the value

если Название1 то <a class="1" title="Название1">Название1</a>
если Название2 то <a class="2" title="Название2">Название2</a>
etc
Thank you

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question