abdfahim
Well-known member
Is there a better way of doing this? Right now I am doing like (in
message_macros
template)
Code:
<xf:if is = "{$user.Profile.custom_fields.getFormattedValue('customA')|raw} != ''">
<span class="classA"></span>
<xf:elseif is = "{$user.Profile.custom_fields.getFormattedValue('customB')|raw} != ''" />
<span class="classB"></span>
<xf:elseif is = "{$user.Profile.custom_fields.getFormattedValue('customC')|raw} != ''" />
<span class="classC"></span>
<xf:elseif is = "{$user.custom_fields.getFormattedValue('customD')|raw} != ''" />
<span class="classD"></span>
</xf:if>
Last edited: