[ic] delimiter for tag parameters

Ron Phipps rphipps at reliant-solutions.com
Wed Oct 26 19:38:39 EDT 2005


> From: Kevin Walsh
> Sent: Tuesday, October 25, 2005 5:04 PM
> 
> Ron Phipps [rphipps at reliant-solutions.com] wrote:
> > I have a usertag that takes as parameters text from the product
title
> > field as well as other fields in the database.  I can't control what
the
> > users put in those fields and therefore the parameter delimiters
like
> > (', ", |) could be within the text.  If the delimiter I'm currently
> > using when calling the tag using ITL is in the text then the call
fails.
> > How do other developers handle this issue?  For example:
> >
> > The database field title could contain:
> >
> > 1' by 5" plywood | treated
> >
> > And if I call my tag like this:
> >
> > [mytag title='[item-field title]']
> >
> > IC displays:
> >
> > [mytag title='1' by 5" plywood | treated']
> >
> > Instead of actually calling the tag passing that text to the tag.
If I
> > use ' " | as the delimiter it all results in the same problem
because
> > those characters show up in the title.  What are our choices for
> > delimiter?  And how do other people handle this issue?
> >
> A bit nasty and inefficient, but you could try this:
> 
>     [mytag title="[data table=products column=title
key='[item-code]']"]
> 
> A better method:
> 
>     [tmp tmp][item-field title][/tmp]
>     [mytag title="[scratch tmp]"]
> 

Thanks Kevin, I went with this method.  Is this a problem due to order
of interpolation?

-Ron




More information about the interchange-users mailing list