community:groupsNotifications
Retrieves type group notifications from the user with the given name or userId specified. Default the loggedin use will be used.
<community:groupsNotifications id="unreadDeclinedGroups" name="user" type="Declined"/> <logic:iterate id="group" name="unreadDeclinedGroups" type="com.ndc.presentation.PresentationGroup"> <util:valueof param="group.article.fieldElement(NAME)"/> </logic:iterate>
Syntax
<community:groupsNotifications id="..." max="..."? name="..."? sort="..."? 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, Person, PresentationSection, Section, PresentationArticle or Article object.
userId
The id of the user you want to get.
type
, mandatoryThe type of Notifications you want to receive. This can be "accepted","Declined","Resigned"
sort
You may sort on the date of when the friend notification was made.
-date
ordate
.Per default, the tag will return results with the newest item first (this is also what you get if you write
-date
to the sort field). However, you may also writedate
to get the oldest first.max
max items to return