[ic] Filter question - Is this possible?
Aftermarket Cellular
wfiore at aftermarketcellular.com
Sat Nov 6 10:13:38 EST 2004
Quoting Jon:
>How/where are you trying to use it?
I pasted the following code at the bottom of my catalog.cfg:
CodeDef before_colon Filter
CodeDef before_colon Routine <<EOR
sub {
my ($val) = @_;
$val =~ s/:.*//;
return $val;
}
EOR
Then I placed the following line in the Title metatag on my flypage template:
[filter before_colon][item-description][/filter]
Quoting Rene:
>I assume that you have restarted/reeloaded your catalg... If not, the do
>so. Check also the output of you catalog error-log.
I did restart interchange. I also checked my error log and I am receiving the
following error:
Unknown filter before_colon
Thanks for everyone's help so far
More information about the interchange-users
mailing list