Copied to clipboard

Flag this post as spam?

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


  • Jonathan Cohen 40 posts 115 karma points
    Sep 28, 2011 @ 20:47
    Jonathan Cohen
    0

    Convert from a parent style doctype?

    Hi,

    First thanx for a very nice lite package, should realy be in the next version of Umbraco.

    One question, I have today a site where we have a structure like this on our doctypes.

    PageBase
    - 2col
    -- NewsPage
    -3col
    --HomePage
    --GenericPage

    On the PageBase doctype we have a SEO, Generic tab with properties
    And on the 2col and 3col we have widget tabs handling 2 or 3 columns of content.

    The other pages only have the properties that are specific for them, now the problem.

    This would be great to have mixins like SEO, Generic, Widget and flatten the structure of our doctypes, but how can I convert this without loosing data on the pages and then also move the doctypes from their parents?

    Then new structure would be much nicer, only:

    --NewsPage
    --HomePage
    --GenericPage

    Any ideas?

    Thanks in advance

    Jonathan

  • Matt Brailsford 2241 posts 10932 karma points MVP 6x c-trib
    Sep 29, 2011 @ 08:42
    Matt Brailsford
    0

    Hi Jonathan,

    That is a tricky one. I did write a package for swapping doc types around (Doc Type Extensions) which you could try http://our.umbraco.org/projects/developer-tools/doc-type-extensions though some people have reported issues that I've not had chance to look at yet. My best advice would be to take a backup before trying it.

    Other than that, there isn't a great deal you can do with an existing structure, as documents aren't meant to allow swapping of their doc types. That said, there is nothing to stop you using DocType mixins in combination with inherited doc types.

    Many thanks

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft