[ic] UI: interpolating usertags
Mon, 30 Oct 2000 15:10:33 +0100
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:
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.
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.
>"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
> > 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
> > 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
> > Interchangefirstname.lastname@example.org
> > http://www.minivend.com/mailman/listinfo/interchange-users
>Interchange-users mailing list