[opencms-dev] How can I use a variable in param attribute(contentload)?
David García González
david.garciag at fundacionctic.org
Tue Apr 18 16:08:13 CEST 2006
Hello, try with
<cms:contentload collector="allInFolder"
param="${pageContext.myPath}news_${number}.html|news" preload="true">
***********************************************************************
David García González
Fundación CTIC
-Centro Tecnológico de la Información y la Comunicación-
E-mail: david.garciag at fundacionctic.org
Tfno: +34 984 29 12 12
-Parque Científico y Tecnológico Gijón-Asturias-Spain
www.fundacionctic.org
***********************************************************************
-----Mensaje original-----
De: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] En nombre de lk
Enviado el: miércoles, 12 de abril de 2006 9:31
Para: opencms-dev at opencms.org
Asunto: [opencms-dev] How can I use a variable in param attribute(contentload)?
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
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list