[opencms-dev] question about xmlcontent

Alexander Kandzior alex at opencms.org
Tue Mar 15 18:25:51 CET 2005


You need 6.0 beta 1. 

There you can do the following 

<cms:contentload collector="singleFile"
param="${property.NAME_OF_PROPERTY}"/> 

or 

<cms:contentload collector="singleFile"
param="${param.NAME_OF_REQUEST_PARAMETER}"/> 

or even

<cms:contentload collector="singleFile"
param="${property.NAME_OF_PROPERTY}_someString_${param.NAME_OF_REQUEST_PARAM
ETER}"/> 

Best Regards,
Alex.

Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com

 

> -----Original Message-----
> From: opencms-dev-bounces at opencms.org 
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Ivan Saracino
> Sent: Tuesday, March 15, 2005 5:12 PM
> To: opencms-dev at opencms.org
> Subject: [opencms-dev] question about xmlcontent
> 
> 
> Hi all,
> 
> I created a new xmlcontent type called product.
> I created some products and i can edit them correctly.
> I can display them with a jsp page like this:
> 
> <cms:contentload collector="singleFile" param="prod.html"
> editable="true">
> ...
> 
> where prod.html is a resource of tipe product.
> 
> 
> To use this snippet of code in a generic template, i need the 
> param attribute to be parametric. I tried this without success:
> 
> <cms:contentload collector="singleFile" param="maybe read 
> from a page property"/> 
> 
> How can i achieve this? 
> thx all.
> 
> 
> 
> _______________________________________________
> 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