[opencms-dev] HowTo create a resource in opencms 6

Christoph P. Kukulies kuku at physik.rwth-aachen.de
Tue Dec 20 13:09:05 CET 2005


On Tue, Dec 20, 2005 at 01:27:01PM +0200, Andras Balogh wrote:


While being at it (resources and objects):

What is a resource in terms of OpenCms?


> Hello,
> 
> And the List is I presume  a List of objects of type CmsProperty:
> http://www.synyx.de/api/opencms6.0.0/org/opencms/file/CmsProperty.html
> 
> BR,
> Andras.
> 
> Thierry Collogne wrote:
> 
> >Hi,
> >
> >I'm new to opencms and to learn it, I 'm following the book from Matt 
> >Butcher.
> >This book was written for opencms 5, so some features are different.
> >
> >I'm no experinmenting with the api and it seems that it has changed a 
> >lot.
> >At some time in the book, a resource is created using the following 
> >method:
> >
> >createResource(java.lang.String newResourceName, java.lang.String 
> >type, java.util.Map properties, byte[] contents, java.lang.Object 
> >parameter)
> >
> >
> >This method is not present in opencms 6. Instead, there is the following:
> >
> >createResource(java.lang.String resourcename, int type, byte[] 
> >content, java.util.List properties)
> >
> >I have no idea how to use the new one. What value should I use for 
> >type (int???). What objects is the properties List composed of?
> >
> >Thanks,
> >
> >Thierry Collogne



More information about the opencms-dev mailing list