[opencms-dev] convert xmlpage to custom resource type

Thomas Maerz thomasmaerz at gmx.de
Tue Aug 30 22:08:58 CEST 2005


Kyung Lee <kyung.lee at marquiswhoswho.com> writes:

> 3. Now, we want to implement the new form-style editing. As far as I
> know, this can only be achieved via a custom resource type (is that
> correct)? Since that's the case, I have created the custom resource type
> and have that kinda/sorta working (tweaking/fixing as we speak).
> 4. Now, when I do "create new" and choose my resource type, I can enter
> an article and it kinda/sorta looks like what I want. When I try to
> change the resource type of previously created pages to my resource
> type, I get errors and it doesn't output all the elements/properties. 

Did you make a comparison of the "controlcodes"?
Left Click -> Edit controlcode


> So, from that, I was thinking the way to approach it is to somehow
> export the data from the old xmlpage type and into my new custom type. I
> don't know if this is the right route or not, just what seemed logical
> to me.

You can export your files via DB-Export, unzip the file and edit the
manifest.xml to change the resource type. And transform your existing
resources to your new xmlcontenttype via XSLT. Then reimport the zipped
files and everything should work.

Or solve your problem via OpenCms' API.


Regards,
Thomas




More information about the opencms-dev mailing list