[opencms-dev] convert xmlpage to custom resource type

Kyung Lee kyung.lee at marquiswhoswho.com
Tue Aug 30 22:25:01 CEST 2005


control code is very different. Original (5.0) version has
<element name="body"> tags, whereas by custom type has <Body
name="Body0"> style tags. it seems to append a "0" at the end of all the
names. 

hmm... how would i use the API to resolve this?



On Tue, 2005-08-30 at 22:08 +0200, Thomas Maerz wrote:
> 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
> 
> 
> 
> _______________________________________________
> 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