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 05, 2020 @ 11:16
    Mikael Axel Kleinwort
    0

    Order of inherited DocType property groups not honored

    In Umbraco 8.6, I have a DocType structure like this

    Level1DocType -> Level2DocType-> Level3DocType

    so Level1DocType inherits from Level2DocType, which in turn inherits from Level3DocType.

    Each DocType adds one group of properties. In content items of type Level3DocType, I want the groups to show up in this order:

    Intended Group Order:

    • Level3DocTypeGroup
    • Level2DocTypeGroup
    • Level1DocTypeGroup

    So in the DocType editor for Level2DocType, I have reordered the groups so Level2DocTypeGroup is first, followed by Level1DocTypeGroup inherited from Level1DocType:

    Expected order of inherited groups:

    • Level2DocTypeGroup
    • Level1DocTypeGroup

    but in the DocType editor for Level3DocType, the inherited groups show up in the order of inheritance and not in the order specified in Level2DocType:

    Actual order of inherited groups:

    • Level1DocTypeGroup
    • Level2DocTypeGroup

    so there is something not working right here.

    For Level3DocType, I now have this group order:

    • Level3DocTypeGroup
    • Level1DocTypeGroup (inherited)
    • Level2DocTypeGroup (inherited)

    Now if I create a content item of type Level3DocType, the content item has the following order of property groups:

    Actual group order of content item:

    • Level1DocTypeGroup
    • Level2DocTypeGroup
    • Level3DocTypeGroup

    Expected group order of content item:

    • Level3DocTypeGroup
    • Level2DocTypeGroup
    • Level1DocTypeGroup

    So it seems that when inheritance of DocTypes is in play, the group order as defined in the DocType is not honored.

    Am I doing something wrong, or is this an issue which I should add in the issue tracker?

    Thank you for any input on this!

  • Steve Morgan 1278 posts 4216 karma points c-trib
    Apr 06, 2020 @ 07:22
    Steve Morgan
    100

    If you go into the sorting on each doctype and manually enter a sort number (don't try to drag the groups - enter the number).

    I tend to space in 10s (so doctype 3 = 0, doc type 2 = 10, doc type 1 = 20) then does that resolve it?

  • Mikael Axel Kleinwort 69 posts 312 karma points c-trib
    Apr 06, 2020 @ 20:21
    Mikael Axel Kleinwort
    1

    Hello Steve,

    thank you, this does the trick!

  • 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