Copied to clipboard

Flag this post as spam?

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


  • Mikael Axel Kleinwort 69 posts 312 karma points c-trib
    Apr 03, 2020 @ 11:22
    Mikael Axel Kleinwort
    0

    Can't add composition to DocType which has children

    When I want to add a composition to a parent DocType which already has child DocTypes, I cannot add a composition. I get the message:

    This content type is used in a composition, and therefore cannot be composed itself.

    When I add the composition to the parent DocType prior to adding child DocTypes, it works. Child DocTypes added to the parent later properly inherit the parent's compositions.

    This seems to be a rather odd limitation / behavior, and an old one for that. See this issue for Umbraco 7 from 2015 (still open), or this forum thread from 2017 (without solution).

    Is there a way to get around this strange behavior?

  • David Brendel 786 posts 2949 karma points c-trib
    Apr 03, 2020 @ 11:35
    David Brendel
    0

    Hi Mikael,

    If I'm correct this issue happens to avoid circular references in the classes generated by ModelsBuilder. So it is intentional.

  • Mikael Axel Kleinwort 69 posts 312 karma points c-trib
    Apr 10, 2020 @ 04:22
    Mikael Axel Kleinwort
    100

    Yes, the behavior is intentional, see this reply from Sebastiaan Janssen.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies