stats:articlePopularityList

Retrieves a list with the popularity per article. The objects returned in the collection are ItemPopularity objects with a 'itemId' and a 'popularity' property.

  <stats:articlePopularityList
      id="articlePopularityList"
      type="view"
      includeArticleTypes="blog"
      max="10" />
  <logic:iterate
      id="articlePopularity"
      name="articlePopularityList"
      type="com.ndc.statistics.api.domain.ItemPopularity">	
    ArticleId <util:valueof param="articlePopularity.itemId"/>
    Popularity <util:valueof param="articlePopularity.popularity"/>
  </logic:iterate>  
Syntax
<stats:articlePopularityList
   author="..."?
   authorId="..."?
   from="..."?
   id="..."
   includeArticleTypes="..."?
   max="..."?
   section="..."?
   sectionId="..."?
   to="..."?
   type="..."
   user="..."?
   userId="..."?/>
Attributes
id, mandatory, no runtime expressions

The name of the scripting-variable

type, mandatory

Action type can be: view, create, update, tag, rate, comment, search, login, message, favorite

user

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 to get the count from.

includeArticleTypes

The type of the article to get the count from.

section

Name of the scripting-variable where to get the user information from. This must be an PresentationSection or Section object.

sectionId

Section id.

author

Name of the scripting-variable where to get the author information from. This can be a PresentationUser, PresentationPerson or Person object.

authorId

The id of the author to get the count from.

from

Date object or hours back from now

to

Date object or hours back from now

max

Maximum items to be returned.