Gesundheit Posted June 17, 2020 Posted June 17, 2020 (edited) Hello, How would I go about using template logic to get the value data from a specific custom profile field? {{foreach $members as $member}} <li class='ipsPhotoPanel ipsPhotoPanel_tiny cAnnouncement'> {template="userPhoto" group="global" app="core" params="$member, 'tiny'"} <div> <h4 class='ipsType_large ipsType_reset'>{$member->link()|raw} </h4> {$member->groupName|raw} <ul class='cAuthorPane_info'> {template="customFieldsDisplay" group="global" app="core" params="$member"} </ul> <span class='ipsType_light ipsType_small'>{lang="widget_member_joined_date" htmlsprintf="$member->joined->html()"}</span> {{if $member->last_activity}} <br><span class='ipsType_light ipsType_small'>{lang="widget_member_last_active_date" htmlsprintf="\IPS\DateTime::ts( $member->last_activity )->html()"}</span> {{endif}} </div> </li> {{endforeach}} I'm assuming I need the right parameter for template customFieldsDisplay, but I can't figure it out. @bfarber perhaps you can help? I checked your guide on , but it doesn't mention how to get content from a specific profile field. Edited June 17, 2020 by Gesundheit sobrenome 1
sobrenome Posted September 28, 2020 Posted September 28, 2020 On 6/17/2020 at 2:17 PM, Gesundheit said: How would I go about using template logic to get the value data from a specific custom profile field? Have you found out how to get custom profile field data? Here is a hint from customFieldsDisplay template: {{foreach $author->contentProfileFields() as $group => $fields}} {{foreach $fields as $field => $value}} <li class='ipsResponsive_hidePhone ipsType_break'> {$value|raw} </li> {{endforeach}} {{endforeach}}
POPa911 Posted November 24, 2020 Posted November 24, 2020 Is there a way to get fields that are not marked to be shown publicly? sobrenome 1
Recommended Posts