W
W
Web__Nikita032018-11-14 19:39:05
MODX
Web__Nikita03, 2018-11-14 19:39:05

Why doesn't getResources work?

I started to study modex, I want to display the benefits, but it doesn’t work. What is the reason?5bec4f9519852694279063.png5bec4f9a161d4513816219.png5bec4f9e0fad7180531238.png5bec4fa4a018e820671501.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Lunegov, 2018-11-15
@Web__Nikita03

You have an error in the TV output:
Instead
, you need to write like this: All resource fields in chunks of the getResources
snippet are displayed through "+" . And the prefix "tv." is the default prefix. Changed via the tvPrefix parameter . If not only pictures are not displayed, then you need to look for an error somewhere else.

R
Ruslan, 2018-11-14
@ruslan_aleev

Perhaps you should remove "Hide from the menu" for resources, try it. Or in getReources set to show hidden.
Still look better towards pdoResources, it is faster (sort of) and constantly updated.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question