MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

UserTag.



I am using the following usertag (which i got from the default
minivend.cfg file) but for some reason it is not being read when i
include it in my catalog.cfg file.
It was originally in minivend.cfg and i would like to get it to work from
catalog.cfg just like the documentation says it can.  Any suggestions
would be appreciated.

UserTag bar-button Order page current
UserTag bar-button PosNumber 2
UserTag bar-button HasEndTag 1
UserTag bar-button Routine <<EOR
sub {
        use strict;
        my ($page, $current, $html) = @_;
        $current = $Global::Variable->{MV_PAGE}
                if ! $current;
        $html =~ s:\[selected\]([\000-\377]*)\[/selected]::i;
        my $alt = $1;
        return $html if $page ne $current;
        return $alt;
}
EOR


Thank you Aboubacar.




Search for: Match: Format: Sort by: