Creating a Callback for Custom Fields for Enumeration

CaptainMorgan

Active member
I realized my initial post was sorta crap. So I'm redoing it.

How in the templates do I enumerate a list of Custom User Fields, that match a unique fieldId value, for display on a message's postbit? For example, output should like so:

1. Mechanic
2. Plumber
3. Carpenter

My message_user_info code:
Code:
                            <dl class="pairsJustified userField_{$fieldId}">
                                <dt><xen:if is="{$fieldId} == 'jobs'">
                                            {$i}
                                    </xen:if>
                                    <span class="job_title">{xen:helper userFieldTitle, $fieldId}</span>:</dt>
                                <dd><xen:contentcheck>{xen:helper userFieldValue, $fieldInfo, $user, {$user.customFields.{$fieldId}}}</xen:contentcheck></dd>
                            </dl>

The foreach for this section is:
Code:
                <xen:foreach loop="$userFieldsInfo" key="$fieldId" i="$i" count="$count" value="$fieldInfo">

Thank you!
 
Last edited:
Back
Top Bottom