[opencms-dev] cms:vfs get content of page element

a.westermann at alkacon.com a.westermann at alkacon.com
Fri Jul 24 15:29:07 CEST 2009


Hi Yves,

I'd try

<c:set var="myvar"><cms:include file="" element="/en/op/start.html" 
element="content"/></c:set>

Then you could use:

${myvar}

somewhere else.

Kind Regards,
Achim.

-------------------
Achim Westermann

Alkacon Software GmbH  - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org




Yves Glodt wrote:
> Hello,
> 
> is there a way usiing the powerful cms:vfs to get the content of a page element?
> 
> Somehow like (guessing, this does not work):
> ${cms:vfs(pageContext).readResource['/en/op/start.html'].contents}
> or
> ${cms:vfs(pageContext).readXml['/en/op/start.html'].value("content")}
> 
> 
> I need to get the html of a page element to pass it to a taglib...
> 
> Best regards,
> Yves
> 
> _______________________________________________
> 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