I'm modifying an Umbraco site with approx. 1000+ notes in the content tree... - The way the site was build originally was not very clever or done by 'best practices' at all...
Therefore it would be very helpfull with somekind of a batch-script that will do the job of changing the docTypes and mapping - rather than using the UI feature on each note... - any idears...?
Create a package with all content; download and unzip it to find the package.xml file
Transform the contents of that file into a new package.xml file, doing all the mapping needed
Zip the package.xml file and install as a new package
I have successfully updated Dcotypes and added new content to sites using this approach; haven't tried changing a node's doctype though - but should be easy to test. If the new package use the same ids it might just work?
Needless to say: Don't try it without a complete backup of everything!
Mass change of doctypes
I'm modifying an Umbraco site with approx. 1000+ notes in the content tree... - The way the site was build originally was not very clever or done by 'best practices' at all...
Therefore it would be very helpfull with somekind of a batch-script that will do the job of changing the docTypes and mapping - rather than using the UI feature on each note... - any idears...?
I was looking at a programatic way of doing this. But at the moment there is no way to change it
Charlie
Hi Robin + Charles,
You could try doing that with XSLT and packages:
package.xml
filepackage.xml
file, doing all the mapping neededpackage.xml
file and install as a new packageI have successfully updated Dcotypes and added new content to sites using this approach; haven't tried changing a node's doctype though - but should be easy to test. If the new package use the same ids it might just work?
Needless to say: Don't try it without a complete backup of everything!
/Chriztian
Thanks Chriztian :)
I might try and see if there is a way to change the doc type on a node programaticlly, although i can think of a number of problems you run into,
Charlie
is working on a reply...