-
Well, it heavily depends on how that custom "members_country" filed is implemented on your site. Whether it is stored as a plain text, or a list item, and if it is a list item - what list is in use - a custom one or the default "Country" one. All of this is unclear.
If we assume that the exact field name is 'members_country' and it stores just an item ID from a "Country" list then the following handler should display a country in that case:
if (!isset($aContentData['members_country'])) return ' '; $sVal = $aContentData['members_country']; $aCountries = BxBaseFormView::getDataItems('Country'); if (!isset($aCountries[$sVal])) return ' '; return $oMenuObject->getUnitMetaItemText($aCountries[$sVal]);-
Thank you for replying. Here is how I added that field and what it has (see images below). I appreciate any more input based on this clarification.
-
Thanks. Can you clarify where the above code goes to?
is it to this file like @LeonidS suggested above (modules/boonex/persons/classes/BxPersonsTemplate.php)
or in your "advanced" module?
-
This is a code to use in the Advanced Menu module. You need to create a new custom menu item handler in the module, give it any name you wish (see examples in the module) and use the provided code as a "Handler's PHP code". Then follow the instructions given in the module (see the bottom of the page, the section "What to do next?")
-