I would like duplicate / copy a lot of document types ( for new website on shared umb instance ). I found "How to copy one document type" but this is very complicated for large structure ( about 100 document types ).
Ideal for me is export actual doc types to c# code, change aliases and setup it on launch umbraco.
How did you mean that? Look at the source code? Because I don't need to copy to another instance / server. I need to create a structure for the new site and use the previous structure, but with a few modifications.
eg: copy the document type for the homepage and edit the two fields. I need to make a copy because I can't modify the logic of an existing website.
uSync outputs files that are definitions of doc types, data types etc. and these can be reimported again. Normally to a different site, but you could edit them (eg. change alias) and then reimport, I think.
You must change the GUID in the uSync export files. Changing the alias only renames this docType :/
The difficulty of changing the GUID is the same as when manually copying in the backoffice UI.
Document types - bulk duplicate / copy
Hi,
I would like duplicate / copy a lot of document types ( for new website on shared umb instance ). I found "How to copy one document type" but this is very complicated for large structure ( about 100 document types ).
Ideal for me is export actual doc types to c# code, change aliases and setup it on launch umbraco.
It's possible? Or something else?
Umb8
Thanks.
Maybe look into uSync? https://our.umbraco.com/packages/developer-tools/usync/
How did you mean that? Look at the source code? Because I don't need to copy to another instance / server. I need to create a structure for the new site and use the previous structure, but with a few modifications.
eg: copy the document type for the homepage and edit the two fields. I need to make a copy because I can't modify the logic of an existing website.
uSync outputs files that are definitions of doc types, data types etc. and these can be reimported again. Normally to a different site, but you could edit them (eg. change alias) and then reimport, I think.
Yes, but no: D
You must change the GUID in the uSync export files. Changing the alias only renames this docType :/ The difficulty of changing the GUID is the same as when manually copying in the backoffice UI.
Or am I wrong?
is working on a reply...