[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [ic] UI: interpolating usertags
Sonny,
At 09:38 AM 10/30/00 -0600, you wrote:
>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.
This is not what I am looking for. My usertag generates a proper option
list in a 'normal' IC page. However, it will not function as expected when
I use that same usertag in an IC UI template (tab content --> new page,
edit page).
I would like a customer to be able to select a picture from a select box
when they create/modify a IC page using the IC user interface. That option
list should be generated dynamically.
My problem is still that IC won't treat a generated option list the same as
a hand typed one.
>---
>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
> >
>
>
>_______________________________________________
>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