Search code examples
2sxcdnn9

2sxc DNN Duplicating Data Content Type On The Same App


I know you can export and import a content type between apps. But how can I duplicate a content type? If they have similar fields (title, content, link, etc), having to enter them all again seems like a waste of time.


Solution

  • So there is no automatic way. If you do this a lot, there's a big chance you're doing something wrong (DRY - don't repeat yourself).

    But: if for whatever reason you need to do it, here's a quick checklist

    1. Go to https://www.guidgenerator.com/ and get yourself a brand new GUID
    2. Export the json of the type you want to duplicate
    3. In the json find the primary guid of the item you need - edit it in the text editor (also change the name so you won't get confused)
    4. Then drag the json back unto the admin-ui to re-import it with the new id