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
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.]
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!
[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
Sorry, I should have made them uncached to begin with. I'm glad you got it sorted. Thanks for reporting back.