This component will display its contents if the logged in user is a member of the specified group/event. If the user is not a member then the contents of the false child component will be rendered.
<fm:IfInGroup gid="123">
You're already a member!
<fm:Else>
<a href="/groupDetails/123">Click here for more details about the group before you become a member.</a>
</fm:Else>
</fm:IfInGroup>
Name | Required | Default | Description |
---|---|---|---|
gid | Required | N/A | Group/event ID to check if the logged in user is a member |
includeChildren | Optional | Check if the user is a member of the specified group or any of its descendants | |
uid | Optional | N/A | User ID you want to confirm is in a group, if not provided will default to logged in user |