[ic] UI: interpolating usertags

Sonny Cook sonny@akopia.com
Mon, 30 Oct 2000 09:38:37 -0600 (CST)


I'm not sure if this will answer your question, but check out the code
used in the interchange checkout page to generate the credit card exp
date.  It's in catalog_dir/pages/ord/checkout.html on or about line 825.

---
Sonny Cook 
Akopia

"I don't want fifteen dollars."  --Franklin D. Rooselvelt

On Mon, 30 Oct 2000, Ton Verhagen wrote:

> Sonny,
> 
> Thanks for your reply.
> 
> I have changed my usertag to return a string like:
> <option>A  <option>B <option>C
> 
> When I use that usertag in a template like:
> page_picture:
>          widget: select
>          options: [myustertag]
> 
> it will generate the following code:
> <SELECT ...><OPTION VALUE="<option>A  <option>B 
> <option>C"><option>A  <option>B <option>C </SELECT>
> 
> Don't know what to do next to get a proper option list.
> 
> Ton
> 
> 
> At 12:51 AM 10/30/00 -0600, you wrote:
> >Without having checked through the code, or really knowing the answer, I
> >think IC does not interpolate the results of tags unless they are
> >parameters to other tags.  With that in mind, you could create another
> >usertag whose purpose in life is to cause some other usertags output to
> >get parsed.  Just have it set to interpolate, and then return whatever
> >input it gets.
> >
> >---
> >Sonny Cook
> >Akopia
> >
> >"I don't want fifteen dollars."  --Franklin D. Rooselvelt
> >
> >On Sun, 29 Oct 2000, Ton Verhagen wrote:
> >
> > > Hi all,
> > >
> > > I am wondering how to have the IC UI interpolate the results of an usertag.
> > >
> > > Here is my problem.
> > >
> > > I added the following code to a template. It will generate a select box
> > > with the options hdr1.gif ... hdr6.gif. So far so good.
> > >
> > > page_picture:
> > >       description: Page picture
> > >       widget: select
> > >       options: hdr1.gif, hdr2.gif, hdr3.gif, hdr4.gif, hdr5.gif, hdr6.gif
> > >
> > > However, instead of having to type a (static) list of image file names I
> > > would like to use a usertag which generates the list dynamically. I 
> > already
> > > have an usertag that does return the options string as in the above
> > > mentioned code. Unfortunately the IC UI treats this whole string as one
> > > single option. Obvioulsly the UI executes the usertag properly, but 
> > doesn't
> > > interpolate the returned string.
> > > How to go about? Maybe I have overlooked something very obvious.
> > >
> > > Hopefully someone has any ideas or pointers.
> > >
> > > Thanks for any help.
> > >
> > > Ton Verhagen
> > >
> > >
> > > _______________________________________________
> > > Interchange-users mailing list
> > > Interchange-users@www.minivend.com
> > > http://www.minivend.com/mailman/listinfo/interchange-users
> > >
> >
> >
> >_______________________________________________
> >Interchange-users mailing list
> >Interchange-users@www.minivend.com
> >http://www.minivend.com/mailman/listinfo/interchange-users
> 
> 
> 
> _______________________________________________
> Interchange-users mailing list
> Interchange-users@www.minivend.com
> http://www.minivend.com/mailman/listinfo/interchange-users
>