2

I am using getResources to display blog entries. For each entry I want to display the name of the user who created the resource.

I can retrieve their ID using placeholder [[+createdby]] but I don't know how to get their name.

Does anyone know how to do this?

MeltingDog
  • 14,310
  • 43
  • 165
  • 295

1 Answers1

3

There is a MODX Revolution output filter called userinfo that you can user on your placeholder like this:

[[+createdby:userinfo=`fullname`]]

Find out more about and other output filters here in the docs: MODX Input and Output Filters

Mazuhl
  • 420
  • 3
  • 9