Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 01330ec25d
Fetching contributors…

Cannot retrieve contributors at this time

53 lines (39 sloc) 1.354 kB
__NAME__ purpose
specify name of the "description" field in the Interchange database
__END__
__NAME__ synopsis
<arg choice='plain'><replaceable>field_name</replaceable></arg>
__END__
__NAME__ description
By default, &IC; expects the product description to be in the
<database class='field'>description</database> field in the
<database>products</database> database.
This directive allows modification of the default name.
</para><para>
The field is accessed implicitly when you call say,
<code>[item-description]</code> in &glos-ITL;.
__END__
__NAME__ notes
It's useful to set this directive based on &glos-locale;,
allowing for locale-specific product descriptions.
__END__
TODO: Clarify this? "If there is an
attribute set to the same name as C<DescriptionField>, this will be used for
display."
__NAME__ example: Redefining DescriptionField
<programlisting>
DescriptionField dsc
</programlisting>
__END__
__NAME__ example: Setting DecriptionField depending on current locale
<programlisting>
# Establish the default at startup
DecriptionField description
# Establish locale-specific description field
Locale fr_FR DecriptionField desc_fr
</programlisting>
To fully understand the example and implicitly presented &IC; features, make
sure you're familiar with &glos-internationalization; and &glos-locale;
glossary
entries.
__END__
Jump to Line
Something went wrong with that request. Please try again.