For more information... RTFM!
NAVIGATION
PAGES THAT LINK HERE
ACCOUNT LOGIN

You are not logged in

Powered by Interchange version 5.7.0

DescriptionField

Specify the name of the "description" column/attribute used by the [item-description] loop sub-tag.

Synopsis

DescriptionField  colname

The default is "description".

Scope

This directive is only available for use in the local (catalog.cfg) configuration file.  It will not affect any other website in any way.  This directive will not work in the global (interchange.cfg) configuration file. 

Description

When the item-description loop sub-tag is used on a page, the description column's (or attribute) value is returned by default.  This directive allows you to specify the name of a different column that should be returned instead.

It is not a fatal error if this column/attribute does not exist.  If there is an attribute set to the same name as the DescriptionField, this will be used for display.  If not then nothing will be returned.  This is especially important for on-the-fly items.

Examples

Using the "foo" column/attribute instead of "description"

DescriptionField  foo

Using locale-specific DecriptionField values

# Set the default on startup
DecriptionField  description

# Specify a locale-specific description field
Locale fr_FR  DecriptionField  desc_fr

Category:  Local config directives
Last modified by: Kevin Walsh
Modification date: Wednesday 23 August 2006 at 9:27 AM (EDT)
Home  |  Legal nonsense  |  Privacy policy  |  Contact us