[ic] Filter question - Is this possible?
Gary Norton
gnorton at broadgap.com
Fri Nov 5 18:47:59 EST 2004
>>You can create your own filter in
>>$VENDROOT/code/Filter/stripfromcolon.filter:
>>
>>CodeDef before_colon Filter
>>CodeDef before_colon Routine <<EOR
>>sub {
>> my ($val) = @_;
>> $val =~ s/:.*//;
>> return $val;
>>}
>>EOR
>>
>>Then do [filter before_colon]Some text: Some more text[/filter].
>>
>>
>
>Jon,
>
>I am having trouble finding the code/Filter folder. Would I have access to
>this on a shared host?
>
>
>
If it's a shared host, probably not. However you can put the same syntax
at the bottom of each catalog.cfg that you plan to use the filter in and
it will work the same.
-Gary
More information about the interchange-users
mailing list