[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] *** LOOP TAG with spaces ***
Quoting Marc Aubert (maubert@swisscenter.ch):
> Hello,
>
> We have a big problem in the loop tag.
>
> We would like that the loop tag's arguments contain spaces (examples :
>
> [loop "Sun Microsystems", "Texas Instruments"]
> [loop-code]
> [/loop]
>
> We would like to be displayed :
>
> Sun Microsystems
> Texas Instruments
>
> AND NOT :
>
> Sun
> Microsystems
> Texas
> Instruments
>
> We've tried to put several things ('', "", arg=, put in variable,
> etc.) without any success.
>
There are two ways. I recommend newline separation:
[loop lr=1 list=|
Sun Microsystems
Texas Instruments
|]
[loop-code] <BR>
[/loop]
Or if you already have a quoted list:
[loop quoted=1 list=|"Sun Microsystems" "Texas Instruments"|]
[loop-code] <BR>
[/loop]
No comma in the above. It is better to do this to avoid possible
quote collision:
[tmp quoted_list]"Sun Microsystems" "Texas Instruments"[/tmp]
[loop quoted=1 list="[scratch quoted_list]"]
[loop-code] <BR>
[/loop]
Same applies for the lr=1 version; if you pre-set it in scratch
then you avoid flakiness due to quoting problems.
--
Akopia, Inc., 131 Willow Lane, Floor 2, Oxford, OH 45056
phone +1.513.523.7621 fax 7501 <heins@akopia.com>
Unix version of an Outlook-style virus:
It works on the honor system. Please forward this message to everyone
you know, and delete a bunch of your files at random.
_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users