Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mathew Knott 6 posts 48 karma points
    Mar 25, 2019 @ 14:36
    Mathew Knott
    0

    Change Document Type in Umbraco 8

    I've noticed in Umbraco 8 there is no option to "Change Document Type" when editing a page in the tree (Under the menu Do Something Else).

    Does anyone know if this feature will come back or if it's gone for good or if kind of work is recommended now to be handled in a different way.

    It was a very handy and useful feature.

  • Bjarne Fyrstenborg 1218 posts 3597 karma points MVP 5x c-trib
    Mar 25, 2019 @ 14:50
    Bjarne Fyrstenborg
    0

    Hi Mathew

    It seems the action exists here, but has been commented out for now: https://github.com/umbraco/Umbraco-CMS/blob/dev-v8/src/Umbraco.Web/Actions/ActionChangeDocType.cs

    I guess it is because the old one was using WebForms and it needs to be re-written with Angular + Web API in Umbraco 8.

    The other actions have Angular views and controllers, which exits here: https://github.com/umbraco/Umbraco-CMS/tree/91c52cffc8b7c70dc956f6c6610460be2d1adc51/src/Umbraco.Web.UI.Client/src/views/content

    It would be great if you submit an issue here: https://github.com/umbraco/Umbraco-CMS/issues

    /Bjarne

  • Mathew Knott 6 posts 48 karma points
    Mar 25, 2019 @ 14:58
    Mathew Knott
    0

    Thanks for looking into it. I'll create the issue.

  • Mathew Knott 6 posts 48 karma points
    Apr 02, 2019 @ 00:22
    Mathew Knott
    102

    FYI, this was further discussed here..

    https://github.com/umbraco/Umbraco-CMS/issues/5070

    Unfortunately, it has been decided that this feature is in the too hard basket for the moment to be implemented. The reason given - the new implementation of multilingual content and the way that is treated is different to V7 and the code can't be just copied across.

    Disappointing as this was a very useful feature in Umbraco 7. Hopefully they'll have the capacity to implement in future versions.

  • Alan Mitchell 54 posts 270 karma points c-trib
    Jun 24, 2021 @ 19:52
    Alan Mitchell
    1

    Appreciate I'm very late to the party. But if anyone else googles their way here, I found it relatively easily to script the database to migrate some content from one document type to a new version.

    Basically I copied the existing document type to a new version. Then used SQL to reassign all the content nodes I wanted to migrate from the old document type id to the new one.

    After this I altered the new document type, leaving alone any properties containing content I wanted to keep. So this only works for "narrowing a type. I wanted to go from a generic "page" type, retaining the main grid content, to something more specific - with different templates and permissions.

    I also had to rerun the migration script on the Umbraco Cloud databases after deployment.

    I've written some more complete instructions here: https://this.isfluent.com/blog/2021/changing-document-types-in-umbraco-8

  • Markus Rytterkull 4 posts 74 karma points
    Aug 23, 2021 @ 12:17
    Markus Rytterkull
    1

    Alan, You're a life saver :-)

    I have a customer that has imported 8000 pages from another CMS and afterwards we found out that some page types where not correct. So instead of creating about 200 new nodes and moving all children, which would take forever, I used your instructions and scripts. Works like a charm!

    Huge thanks :-) / Markus

  • Fiona Garnet-Lawson 20 posts 100 karma points
    Aug 26, 2021 @ 09:46
    Fiona Garnet-Lawson
    0

    Would echo that that the feature 'Change Document Type' is really useful, and it would be nice to have it back.

    Since there is no further development on v8, is this functionally on the 'to do' list for v9?

    thanks Fiona

  • Chris Ashton 53 posts 84 karma points
    Aug 28, 2021 @ 21:05
    Chris Ashton
    1

    @Fiona Killer feature for me in v7... several enterprise clients won't upgrade to v8 because of the reduced agility v8 introduced by removing this feature.

  • Jamie Attwood 155 posts 382 karma points c-trib
    1 week ago
    Jamie Attwood
    0

    This needs to get back on the list for V9 for sure. This is a feature mostly used when upgrading sites from v7 upwards!

Please Sign in or register to post replies

Write your reply to:

Draft