optionalelse

Date: 13-04-2007 13:17 Views: 2955 Author: Colin Polonowski

Description:

Displays a template if a specified content element contains a value. Otherwise displays a different template

There are three parameters:

1. template - the template to display if the element contains a value
2. element - the element to check
3. alternativetemplate - the template to display if the element doesn't contain a value

Syntax:

(optionalelse|template|element|alternativetemplate)

Example:

  • (optionalelse|Link:More|moreavailable|NoLink)
    Checks to see if moreavailable contains a value. If it does, it displays the Link:More Fixed Template, otherwise it displays the NoLink Fixed Template.