community:friendsNotifications

Retrieves type friends notifications from the user with the given name or userId specified. Default the loggedin use will be used.

  <community:friendsNotifications
      id="unreadResignedFriends"
      name="user"
      type="resigned" />
  <logic:iterate
      id="item"
      name="unreadResignedFriends"
      type="com.ndc.presentation.PresentationUser">
    <util:valueof param="item.article.fieldElement(USERNAME)"/>
  </logic:iterate>  
Syntax
<community:friendsNotifications
   id="..."
   max="..."?
   name="..."?
   sort="..."?
   type="..."
   userId="..."?/>
Attributes
id, mandatory, no runtime expressions

Name 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, mandatory

Type can be "accepted", "declined" or "resigned".

sort

You may sort on the date of when the friend notification was made. -date or date.

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 write date to get the oldest first.

max

max items to return