R
R
RushV2020-09-01 20:22:19
MODX
RushV, 2020-09-01 20:22:19

Why doesn't this ModX code work?

Hello!
I'm trying to display the author of the resource


Damn not working!
Tell me how to correctly implement the conclusion of the author of the resource?
Worth miniShop2.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Lunegov, 2020-09-02
@RushV

The resource has a createdby field .
MODX has I/O filters and the UserInfo modifier .
Therefore, on the resource page it is better to display it like this:
admin
And in the list of resources (via pdoResources) - like this:

D
DocentBF, 2020-09-01
@DocentBF

Append to the parameters &showLog=`1`and show the output.
Alternatively, add spaces after the curly braces:&where=`{ "createdby":(anonymous) }`

D
Danny Arty, 2020-09-01
@DanArst

&where=`{"createdby:=":0}`

M
Michael, 2015-07-30
@andrey69rus

For example here or here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question