ifcontentexists

Date: 03-05-2007 11:02 Views: 2774 Author: Colin Polonowski

Description:

This function checks whether content exists in the definition or advanced index specified and displays a template if it does.

There are three parameters:

1. identifier - the definition/index identifier you want to check
2. template - the template to display if content exists
3. type - the type that the identifier links to - can be definitionid (in which case idenifier is the numeric definition ID), definitionname (in which case identifier is the definition name), or advancedindex (in which case identifier is the name of the index you want to check)

Syntax:

(ifcontentexists|identifier|template|type)

Example:

(ifcontentexists|CompetitionIndex|Competitions|advancedindex)
If there is any content in the CompetitionIndex advancedindex, the Competitions template is displayed.