0
  • MODX Revolution 2.2.5-pl
    • getresources
    • Newspublisher

Wondering whether it is possible to show the resources that belong to the current logged in user.

The idea is to have a option in the users profile, to list of all resources created by him.

thanks

1 Answer 1

5

You need a filter of resources by createdby field, for example:

[[!getResources? 
    &parents=`[[*id]]` 
    &where=`{"createdby:=":[[!+modx.user.id]]}` 
    &tpl=`myRowTpl`
]]
0

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.