Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date ][Interchange by thread ]

Re: [ic] Nested loop problem



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
_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users


Search for: Match: Format: Sort by: