Conditional Help Needed Message Template and Usergroups

Michael

Active member
Hey I am trying to display some content for members of one usergroup within the message template, I am trying to use this but it doesnt appear to work:

<xen:if is="{xen:helper ismemberof, $user, 4}">
<xen:if is="{$message.customFields.my_test}">
<p>{$message.customFields.my_test}</p>
</xen:if>
</xen:if>

This seems to work fine within the message_user_info template, any ideas?

Thank you :)
 
I've just had a play about with this. I can get it working in "message" template above or below the signature by changing ALL the variables to $message including the testing of the usergroup membership:

Code:
<xen:if is="{xen:helper ismemberof, $message, 3}">
<xen:if is="{$message.customFields.latitude_member_map}">
<p>{$message.customFields.latitude_member_map}</p>
</xen:if>
</xen:if>
 
Top Bottom