Diesan Romero
Member
I want to create a condition where: If a user belongs to a specific group, that condition is met. The idea is to show the users of a group in the sidebar, as well as show the staff members. Does anyone have any idea how to do this?
For example, I have seen that the condition to verify if a user is a member of the staff or not, is this:
How would I verify in this case, if a user is a member of a group?
For example, I have seen that the condition to verify if a user is a member of the staff or not, is this:
PHP:
<xen:if is="{$user.is_staff}">
<li>
<xen:avatar user="$user" size="s" img="true" />
<xen:username user="$user" rich="true" />
<div class="userTitle">{xen:helper userTitle, $user}</div>
</li>
</xen:if>
How would I verify in this case, if a user is a member of a group?
Last edited: