[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Interpret arguments to usertag
> >I'm having difficulty understanding one part of the usertag capability. I
> >need to pass a dynamic argument to a usertag, but it never seems to be
> >interpreted properly.
> >
> >Specifically:
> >
> > [tag xyz [data session arg] ]
> >
> >Never interprets [data session arg]. What am I missing?
> >
> >My sample "tag" is defined as follows:
> >
> >UserTag tag Order action arg
> >UserTag tag Interpolate
>
> UserTag tag PosNumber 2
>
[yourtag action="xyz" arg="[data session arg]"]
If you will always be using [data session arg] then you could drop
the arg parameter altogether and just use $Vend::Session->{arg} in
your UserTag. If you will be passing all manner of values to the
arg then just keep it as it is, but change the calling syntax, as
shown.
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/