maxicep
Active member
Hello,
I'm trying to put font awesome icons instead of text to {$fieldDefinition.title} of the custom user fields title on custom_fields_macros template. I already changed the messages, reactions text with font awesome icon easily on message_macros template. But custom fields tired me
For example; You can see that i changed the messages and reactions title as icon, but other fields are custom field so i need put the icons them instead of text.
After i open the custom_fields_macros template, i see that and here should be edit (need conditionals) I'm trying to add some conditionals but doesn't work (see the red codes)
So, what is the right conditional for do that? Thanks
I'm trying to put font awesome icons instead of text to {$fieldDefinition.title} of the custom user fields title on custom_fields_macros template. I already changed the messages, reactions text with font awesome icon easily on message_macros template. But custom fields tired me
For example; You can see that i changed the messages and reactions title as icon, but other fields are custom field so i need put the icons them instead of text.
After i open the custom_fields_macros template, i see that and here should be edit (need conditionals) I'm trying to add some conditionals but doesn't work (see the red codes)
Rich (BB code):
<xf:foreach loop="$xf.app.getCustomFields({$type}, {$group}, {$onlyInclude}, {$additionalFilters})" key="$fieldId" value="$fieldDefinition">
<xf:if is="$fieldDefinition.hasValue({$set.{$fieldDefinition.field_id}})">
<dl class="{$valueClass}">
<xf:if is="$xf.post.user.Profile.custom_fields.gsmoperatoru">
<i class="fa fa-wifi fa-large fa-fixed-width" style="padding-left:5px;"></i>
<xf:else />
<dt>{$fieldDefinition.title}</dt>
</xf:if>
<dd>
<xf:macro name="custom_field_value"
arg-definition="{$fieldDefinition}"
arg-value="{$set.{$fieldDefinition.field_id}}" />
</dd>
</dl>
</xf:if>
</xf:foreach>
So, what is the right conditional for do that? Thanks