M
M
Matvey Tomilov2017-05-24 10:40:12
css
Matvey Tomilov, 2017-05-24 10:40:12

How to correctly implement the addition to ModX Revo TV "New" through the checkbox?

Good afternoon!
Products are added to the site and it is necessary to implement the addition of an exemplary inscription with a red background on the div block.
sorento_Dg.10c4abd2.jpg
Simply put: the client puts a tick in the resource and he has an already issued inscription "new" on the selected product.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
Tatyana Anufrieva, 2017-05-24
@etozhematvekat

You create an additional field labelTovar (your name) type radio buttons (radio)
No icon==0||New==1
When displaying, be sure to include it in &includeTVs in pdoPage
and check it in the display


your html code in the display - I gave my example

F
Froggyweb, 2017-05-24
@Froggyweb

as an option, take the publication date and compare it with the current one. If in the right range, then New.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question