Can [[*publishedby]] Return a User's Full Name?

I am building a blog using the Collections extra, and while I love it for it’s flexibility, I can’t seem to find a way to output the name of who published the post/resource on the front end. Is there a way to do so?

Another thing; Is there a way to use a field to to modify the [[*publishedby]] information manually in a field, or do I need a Tv and forego that tag altogether? If so, could a Tv at least be a dropdown automatically populated by existing users full names?

1 Like

So the [[*publishedby]] tag outputs an integer - the id of the user who published it. You then need to grab the user name or full name from that ID. Something like

[[*publishedby:userinfo=`fullname`]]

You could also created a new single select TV and grab the username etc using a select binding see here: https://docs.modx.com/current/en/building-sites/elements/template-variables/bindings/select-binding

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.