Copied to clipboard

Flag this post as spam?

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


  • SinkyPars 132 posts 175 karma points
    Aug 24, 2015 @ 13:13
    SinkyPars
    0

    Move Document Type Properties to Master

    Hello,

    Hopefully someone can point me in the right direction, I think this may take a script to do.

    I have some properties in a child document type which I would like to move to the childs parent document type. Has anyone successfully done this before?

    Deleting document type properties, then adding them to the master deleted the data.

    Thanks,

    Scott

  • SinkyPars 132 posts 175 karma points
    Aug 24, 2015 @ 13:20
    SinkyPars
    0

    I should also mention, that as well as moving properties to the parent document type, it would be good to move properties to Document Type Compositions to.

    Thanks,

    Scott

  • Lars-Erik Aabech 349 posts 1100 karma points MVP 7x c-trib
    Aug 24, 2015 @ 13:28
    Lars-Erik Aabech
    0

    I'm afraid the only way to go about this for now is to manually reparent the properties in the database.

    (Might be somebody knows something I don't, but that's what I'd do)

  • SinkyPars 132 posts 175 karma points
    Aug 24, 2015 @ 13:35
    SinkyPars
    0

    Thanks Lars.

    Do you know if this is all controlled in cmsPropertyTypeGroup?

    Trying to find my way in the dark a little here.

    Cheers,

    Scott

  • Lars-Erik Aabech 349 posts 1100 karma points MVP 7x c-trib
    Aug 24, 2015 @ 13:39
    Lars-Erik Aabech
    2

    You've got

    • cmsContentType
      which has the ID for the content type

    • cmsPropertyTypeGroup
      which has the Tab on the content type.
      It needs to be on both content types if you mix props in it.

    • cmsPropertyType
      which has the properties.
      These need to be linked to the content type (master) and the tab in the content type (so master's version of the tab)

  • SinkyPars 132 posts 175 karma points
    Aug 24, 2015 @ 13:58
    SinkyPars
    0

    All sounds fairly straight forward :) Thank's again Lars, I'll let everyone know how it goes.

    Scott

Please Sign in or register to post replies

Write your reply to:

Draft