[[+content_image]]
T
T
tereshock982021-07-21 11:12:16
MODX
tereshock98, 2021-07-21 11:12:16

How to check radio in TV in ModX?

How can I check an additional field for which radio button is selected in ModX Revo?

Tried to check like this


и
[[#2.tv.feedback.videoOrPhoto:is=`b`:then=`1`:else=`2`]]

, but it doesn’t work, it always gives out 2

In the TV parameters, I specified it like this:
Видео==a||Изображение==b

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
A
Alexey Golyagin, 2021-08-01
@webrevenue

On phenom something like this:

<li class="product__meta-availability">Наличие: {if $_modx->resource.availability}<span class="text-success">под заказ</span>{else}<span class="text-success">в наличии</span>{/if}</li>
/ This is on the example of the presence of goods:
6106a5826d35e393302408.jpegat the exit
6106a5b5f0d40688365305.jpeg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question