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

You are not logged in

Powered by Interchange version 5.7.0

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

Categories:  Global config directives | Local config directives
Last modified by: Kevin Walsh
Modification date: Friday 16 February 2007 at 6:23 PM (EST)
Home  |  Legal nonsense  |  Privacy policy  |  Donations  |  Contact us