Thanks Andy, I'll follow your suggestion.
Generally speaking I'm never certain if and/or when the property order matters, regardless of snippet. Yet I always seem to get caught out every now and then. Some rules or guidelines regarding property order would not go amiss.
Anyway, getting back to my original question. I'm asking about useExtended=0
because I'm using a customized TW responsivePersonalConfig
Chunk to personalize the RFM folder message.
It grabs the extended field (firstName) for the message.
$myProfile = $modx->user->getOne('Profile');
$myProfile = $myProfile->get('extended');
$myProfile = $myProfile['firstName'];
$folder_message = "Hi " . $myProfile . " This is your custom media folder...
It was working fine when I was only using User > Extended Fields.
The problem now is this (when using ClassExtender with Register):
property in the Register (and UpdateProfile) calls prevent the firstName
(and other fields) from being saved in User > Extended Fields which is where the above code looks for the firstName
value. Hence it's not being displayed in the RFM message.
are in fact required when using ClassExtender fields, then my question is simply this:
How can I grab the firstName
value from the ClassExtender field and use it in the custom RFM folder message (above)?
[ed. note: todd.b last edited this post 11 months, 1 week ago.]