[opencms-dev] Dynamically placing param value in ContentLoad Tag

Achim Westermann a.westermann at alkacon.com
Wed Nov 23 09:50:52 CET 2005


Hi Shishank,

you could go to WEB-INF/opencms.tld and add

<rtexprvalue>true</rtexprvalue>


to the contentload descriptor. But keep in mind that this breaks your configuration from the opencms standard as shipped.
Alternatively you could put the value into the pageContext (<c:set var="file">/sites/default/xyz.html</c:set>) and then use a macro 
"<cms:contentload...param="${pageContext.file}">..." or look at other macro resolvations in the CmsMacroResolver.

kind regards,

Achim


-- 
Achim Westermann
-------------------
Alkacon Software
http://www.alkacon.com

shishank.mathur at wipro.com wrote:
> Hi,
>  
> We are trying to dynamically replace the param value in ContentLoad tag 
> but with no luck.
>  
> Here is what we are trying to do
>  
> <%
>  String file = "/sites/default/xyz.html";
> %>
>  
> <cms:contentload collector="singleFile" param="<%=file%>">
>  
> <cms:contentshow element="Title" />
>  
> </cms:contentload>
>  
> Any pointers as to how we can achieve the above scenario ?
>  
> Cheers,
> Shishank Mathur
> 
> 
> Confidentiality Notice
> 
> The information contained in this electronic message and any attachments 
> to this message are intended
> for the exclusive use of the addressee(s) and may contain confidential 
> or privileged information. If
> you are not the intended recipient, please notify the sender at Wipro or 
> Mailadmin at wipro.com immediately
> and destroy all copies of this message and any attachments.
> 
> 
> ------------------------------------------------------------------------
> 
> 
> 
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev



More information about the opencms-dev mailing list