[opencms-dev] How can I use a variable in param attribute (contentload)?

lk cesto at email.it
Wed Apr 12 09:30:30 CEST 2006


Hi,

I'm facing a problem using contentload tag.

I would like to put a different path in the param attribute of the tag.
If I write directly the path everything works well:
<cms:contentload collector="allInFolder" 
param="/sites/default/modules/news/news_${number}.html|news" preload="true">

But if I put the path in a variable using c:set and try to use this 
variable in the param attribute it seems not to work (as the path would 
be wrong).

<c:set var="myPath" value="/sites/default/modules/news/" />

<cms:contentload collector="allInFolder" 
param="${myPath}news_${number}.html|news" preload="true">

I'm sure I'm making an error using variables.

Another problem:

I've tried to put the contentload (just the start tag) into a 
<c:choose><c:when><c:otherwise> tag, but I got an error because the tag 
contentload is not properly terminated (the tag is present in bot c:when 
and c:otherwise tags).

Thanks for any advices

LuKe
 
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Le speciali Offerte di Benvenuto di Cassine di Pietra:
* scopra il gusto ed i vantaggi delle tradizioni contadine
* 
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=3924&d=12-4



More information about the opencms-dev mailing list