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

shishank.mathur at wipro.com shishank.mathur at wipro.com
Wed Nov 23 10:11:14 CET 2005


Thanks Achim !!!

We even got the first approach working but were looking for alternatives
that do not deviate from shipped OpenCms configuration.

Cheers,
Shishank

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Achim Westermann
Sent: Wednesday, November 23, 2005 2:21 PM
To: The OpenCms mailing list
Subject: Re: [opencms-dev] Dynamically placing param value in
ContentLoad Tag

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


_______________________________________________
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



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.



More information about the opencms-dev mailing list