CodeDef
Generic Perl subroutine mapper.
Scope
This directive is available for use globally
(in the "interchange.cfg" configuration file),
and locally (in the "catalog.cfg" configuration file).
The global configuration affects all websites running
under the Interchange instance.
Each individual website's local configuration will not affect
or influence other websites in any way.
Description
A generic Perl subroutine mapper,
which allows mapping of subroutines to
ActionMaps,
CoreTags,
UserTags,
Filters,
FormActions,
GlobalSubs,
ItemActions,
LocaleChanges and
OrderChecks.
Example
CodeDef word Filter
CodeDef word Description A-Za-z_0-9
CodeDef word Routine <<EOR
sub {
my $val = shift;
$val =~ s/\W+//g;
return $val;
}
EOR
|