[opencms-dev] Write properties
Christian Steinert
christian_steinert at web.de
Wed Mar 1 12:57:37 CET 2006
Yo wrote:
> Hello,
> I would like to get all the properties of a resource(this i know) ,
> and then write them to an object. I would like to know if it is
> possible to write properties to a object that has these properties.
>
> Example.
>
> resource a: Property title:at
>
> resource b: Property title:bt, nav:bnav
>
>
> Later i would like to do the following. Get all properties of a(tha is
> title) and put them in , the title will be 'at' and the navegation
> property of b will dissappear.
>
> Thank you.
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> 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
Hi,
Yesterday or so I posted some code for accessing file properties.
Basically you do
cmsJspActionElement.getCmsObject().readPropertyObjects("/path/to/resource.xyz");
or
cmsJspActionElement.getCmsObject().writePropertyObjects("/path/to/resource.xyz",
myPropertyList);
see my previous post and the javadoc of CmsProperty for some indication
on how to deal with property objects.
Cheers
c.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060301/2df361c3/attachment.htm>
More information about the opencms-dev
mailing list