Wow I hadn't tried this, simply it would be
$home_page = pnUserGetVar(_YOURHOMEPAGE)
Or using the new object library
Loader::loadClass('UserUtil');
$usr_dud = UserUtil::getUserDynamicDataFields(SessionUtil::getVar('uid'));
foreach (UserUtil::getDynamicDataFields() as $dud) {
if ($dud['prop_label'] == _YOURHOMEPAGE) {
$home_page = $usr_dud[$dud['prop_id']]['uda_value'];
}
}
But it assumes that the property label '_YOURHOMEPAGE' hasn't been changed.
I've been experimenting as I write...
I thought adjusting the Profile module for a default, non-editable set of 'obvious' variable labels might do the trick or use it's pnAPI to get what I wanted... but it's
not pnAPI compliant???
So I am requesting some feedback on this core module and it's usage from someone involved in the code please.
--
Under Construction!