NAME
Package WebGUI::Macro::RecentPosts
DESCRIPTION
Macro for displaying the latest X posts in one or more collaboration systems.
Usage: ^RecentPosts(assetId,templateId [,numPosts,orderByField,descendingOrder,summaryField,dateField])
Available template variables:
post_url
post_title
post_epoch_date
post_date
post_thumbnail
post_userDefined1
post_userDefined2
post_userDefined3
post_userDefined4
post_userDefined5
post_summary (if you pass the optional summaryField argument)
process ( assetId,templateId [,numPosts,orderByField,descendingOrder,summaryField,dateField] )
process takes 2 required parameters and 5 optional ones.
assetId
The assetId of the parent of the collaboration system(s) from which recent posts should be pulled. If only pulling from one CS, you can specify its assetId directly.
templateId
The templateId of the template the recent posts should be displayed in.
numPosts
The number of recent posts to pull; default is 3.
orderByVar
The name of the template variable to order the posts by; default is none.
descendingOrder
If set to a true value (i.e. 1), posts will be in descending order.
summaryField
The name of the field to use for the summary; default is none.
dateField
The name of the field to get the date of the post from; default is dateSubmitted.