[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [ic] delimiter for tag parameters


Ron Phipps suppressed 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]"]

This one will probably work too:

    [mytag title="[restrict][item-field title][/restrict]"]

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    suppressed
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/

_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.