We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37131
    • 111 Posts
    In examples for displaying user's profile using Profile descriptions are hardcoded:
    <p>Username: [[+username]]</p>

    How to get their translated names from Login (or Register) lexicon ?
      ---
      Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. Martin Golding
      • 3749
      • 24,544 Posts
      It would be something like this:

      <p>[[!%login.username? &language=`en` &topic=`default` &namespace=`login`]]: [[+username]]</p>




      ------------------------------------------------------------------------------------------
      PLEASE, PLEASE specify the version of MODX you are using.
      MODX info for everyone: http://bobsguides.com/modx.html


      [ed. note: BobRay last edited this post 14 years ago.]
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 37131
        • 111 Posts
        It works, however I've had to change few thing when using more fields
        <p>[[!%login.username? &language=`pl` &topic=`login` &namespace=`login`]]: [[+username]]</p>
        <p>[[!%login.fullname? &language=`pl` &topic=`updateprofile` &namespace=`login`]]: [[+fullname]]</p>
        <p>[[!%login.email? &language=`pl` &topic=`updateprofile` &namespace=`login`]]: [[+email]]</p>

        Funny thing - I had to make these calls uncached, they were using old values despite clearing cache in MODX.
        Thanks! smiley [ed. note: khyrlik last edited this post 14 years ago.]
          ---
          Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. Martin Golding
          • 3749
          • 24,544 Posts
          Sorry, I should have made them uncached to begin with. I'm glad you got it sorted. Thanks for reporting back. smiley

            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting