We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26503
    • 620 Posts
    So we can do things like this to show information about the current user in chunks & resources:

    [[+modx.user.id]] [[+modx.user.username]]

    Great, but what about profile fields?

    [[+modx.profile.fullname]] [[+modx.user.profile.fullname]]

    neither of these work BTW - just guessing because if they are available, they don't appear to be documented.

    can we get user profile fields in resources & chunks? [without writing a snippet]

    This question has been answered by sottwell. See the first response.

      *** Not just websites, we also create signage, banners, print, trade show displays and more! ***

      Sean Kimball CLP, CLS.
      Technical Director / Sr. Developer | BigBlock Studios
      ._______________________________________________.
      Bigblock Studios http://www.bigblockstudios.ca Web site design & development.
      27-1300 King Street East. Box 167 Oshawa, Ontario L1H8J4 Canada.
      phone/fax: 905-426-5525
    • discuss.answer
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      [[+modx.user.id:userinfo=`fieldname`]]

      It's at the end of the Output Modifiers documentation.

      You can even access top-level extended fields using dot notation like this:
      [[+modx.user.id:userinfo=`extended.name`]]


      I'm not sure if there is any way to use this method for displaying nested extended values.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 26503
        • 620 Posts
        Quote from: sottwell at Mar 11, 2015, 02:27 PM
        [[+modx.user.id:userinfo=`fieldname`]]

        It's at the end of the Output Modifiers documentation.

        You can even access top-level extended fields using dot notation like this:
        [[+modx.user.id:userinfo=`extended.name`]]


        I'm not sure if there is any way to use this method for displaying nested extended values.

        Thanks Susan, I figured there must be some way other than dumping the entire profile to placeholders.
          *** Not just websites, we also create signage, banners, print, trade show displays and more! ***

          Sean Kimball CLP, CLS.
          Technical Director / Sr. Developer | BigBlock Studios
          ._______________________________________________.
          Bigblock Studios http://www.bigblockstudios.ca Web site design & development.
          27-1300 King Street East. Box 167 Oshawa, Ontario L1H8J4 Canada.
          phone/fax: 905-426-5525