K
K
Ken Jee2019-08-01 21:19:25
MODX
Ken Jee, 2019-08-01 21:19:25

Is it possible to get to the +views field in TicketsLatest?

Please tell me, is it possible to display the field inside the tpl.tickets.latest.item template, which is passed to the TicketLatest snippet? The field is displayed normally, but instead of - an empty value. Or is it necessary to use the TicketMeta snippet exclusively?

. . .

. . .

From the tpl.tickets.latest.item template:
. . .
<p>Опубликовано: , просмотров: </p>
. . .

Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Ezersky, 2019-08-03
@EzS

Get the resource through , and then the required fields through Here , see the branch $object = $modx->getObject('Ticket',15)$object->get('views')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question