community:friends
Retrieves all the friends from the user with the given name or userId specified. You can set a type of friend.
<community:friends id="friends" name="user"/> <logic:empty name="friends"> No real friends found </logic:empty> <logic:notEmpty name="friends"> <logic:iterate id="friend" name="friends" type="com.ndc.presentation.PresentationUser"> <util:valueof param="friend.section.url"/> <util:valueof param="friend.article.fieldElement(USERNAME)"/> </logic:iterate> </logic:notEmpty>
Syntax
<community:friends 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 friends you want to receive. This can be "accepted","candidate","pending". Default is "accepted"