Name

DescriptionField — specify name of the "description" field in the Interchange database

SYNOPSIS

field_name

DESCRIPTION

By default, Interchange expects the product description to be in the description field in the products database. This directive allows modification of the default name.

The field is accessed implicitly when you call say, [item-description] in ITL.

DIRECTIVE TYPE AND DEFAULT VALUE

Catalog directive

EXAMPLES

Example: Redefining DescriptionField

DescriptionField opis

"Opis", for example, is a croatian equivalent of "description".


Example: Setting DecriptionField depending on current locale

# Establish the default at startup
DecriptionField    description

# Establish locale-specific description field
Locale fr_FR  DecriptionField  desc_fr

To fully understand the example and implicitly presented Interchange features, make sure you're familiar with internationalization and locale glossary entries.


NOTES

The existence of the field is not exactly crucial, but it's important for say, flypages.

It's also useful to set the directive value based on locale, allowing for locale-specific product descriptions.

AVAILABILITY

DescriptionField is available in Interchange versions:

4.6.0-5.7.0 (cvs-head)

SOURCE

Interchange 5.7.0:

Source: lib/Vend/Config.pm
Line 693

['DescriptionField', undef,              'description'],

AUTHORS

Interchange Development Group

SEE ALSO

description(7ic)

DocBook! Interchange!