featuredcontent

Date: 13-04-2007 13:11 Views: 3452 Author: Colin Polonowski

Description:

Displays a random piece of content of a particular type based on the 'Featured' flag. This allows certain content to be flagged as notable and recommended to the user

There are three parameters:

1. template - the template that defines the layout of the featured content
2. definitionid - the definition of the type of content to display
3. fromlast - the number of previous pieces of content to include in the random selection. 0 = all content. This allows you to specify if only recent content is displayed to the user.

Syntax:

(featuredcontent|template|definitionid|fromlast)

Example:

  • [featuredcontent|FeaturedContent:Reviews|1|10]
    Displays a piece of content from definition 1 that has been flagged as 'Featured' and displays it in the 'FeaturedContent:Reviews' template.