[ic] Nested loop problem

Mike Heins interchange-users@lists.akopia.com
Mon May 14 12:58:00 2001


Quoting Stefan Hornburg (Racke) (racke@linuxia.de):
> 
> I have the following code:
> 
> [loop prefix=cat search="st=db/fi=merchandising/tf=featured/rf=featured,sku/un=1/ra=yes"]
> [cat-param featured]<br>
> [loop prefix=comp search="st=db
> fi=merchandising
> sf=featured
> se=[cat-param featured]
> rf=sku"]
> <a href="[comp-param sku]" class="navigationrechts">[field partnumber [comp-param sku]]</a></br>
> [/loop]
> [/loop]
> 
> It works fine but in one the case. If [cat-param featured] contains ",
> the inner loop broke and [loop ...] gets displayed itself.
> 
> Anything I can do about it (this is 4.7.latest)

You can use | or ' to quote, too. Or you can do:

	[set something][cat-param featured][/set]

	search="
		se=[scratch something]
	"
-- 
Red Hat, Inc., 131 Willow Lane, Floor 2, Oxford, OH  45056
phone +1.513.523.7621 fax 7501 <mheins@redhat.com>

"Even if you're on the right track, you'll get run over if you just
sit there." -- Will Rogers