community:groups
Retrieves all the groups from the user with the given name or userId specified.
<community:groups id="groups" name="user"/> <logic:empty name="groups"> No groups found </logic:empty> <logic:notEmpty name="groups"> <logic:iterate id="group" name="groups" type="com.ndc.presentation.PresentationGroup"> <util:valueof param="group.section.url"/> <util:valueof param="group.article.fieldElement(NAME)"/> </logic:iterate> </logic:notEmpty>
Syntax
<community:groups id="..." name="..."? type="..."? userId="..."?/>
Attributes
id
, mandatory, no runtime expressionsName of the scripting-variable.
name
Name of the scripting-variable where to get the user information from. This can be a PresentationUser, PresentationPerson or Person object.
userId
The id of the user you want to get.
type
The type of groups you want to receive. This can be "accepted","invited","pending","admin". Default is "accepted"