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 140 posts 484 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 792 posts 2970 karma points MVP 3x 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 140 posts 484 karma points c-trib
    Apr 10, 2020 @ 04:22
    Mikael Axel Kleinwort
    100

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

Please Sign in or register to post replies

Write your reply to:

Draft