[ic] Interpret arguments to usertag

Kevin Walsh interchange-users@icdevgroup.org
Tue Jul 30 16:13:00 2002


> >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
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/