Copied to clipboard

Flag this post as spam?

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


  • Mike Poole 53 posts 165 karma points
    Oct 13, 2017 @ 14:53
    Mike Poole
    0

    Inherit values on child document type

    I have a document type (no template) called Document Category. I use this to allow users to create categories,. It has one property Category Label (TextString)

    I then have another document type (no template) called Document Item which is a child of Document Category.

    When users create Document Item content from Document Library, I want the Category Label to be pre populated based on the parent document they are creating from

    Is this possible? All I get is an empty textstrign box and I cannot remove the property in the DocumentType as it says

    " Inherited from Document Category"

  • Alex Skrypnyk 6182 posts 24284 karma points MVP 8x admin c-trib
    Oct 13, 2017 @ 14:56
    Alex Skrypnyk
    0

    Hi Mike

    If you are using Umbraco version 7.7+ - then Content Templates what you need, read more how to use it - http://www.markwemekamp.com/blog/umbraco/how-to-use-content-templates-in-umbraco/

    Thanks

    Alex

  • Mike Poole 53 posts 165 karma points
    Oct 13, 2017 @ 15:05
    Mike Poole
    0

    Thanks Alex, so nothing pre 7.7?

  • Alex Skrypnyk 6182 posts 24284 karma points MVP 8x admin c-trib
    Oct 13, 2017 @ 15:10
    Alex Skrypnyk
    0

    Mike, what version are you using?

  • Mike Poole 53 posts 165 karma points
    Oct 13, 2017 @ 15:12
    Mike Poole
    1

    We are on 7.5.9

    There will be upgrades in the future but I need to come up with a solution based on this version (not a show-stopper but would look really nice if the content inherited)

    OR, failing that, I could just remove the inherited field from the child document type and get the value I want when I walk the nodes from the parent

  • Alex Skrypnyk 6182 posts 24284 karma points MVP 8x admin c-trib
    Oct 13, 2017 @ 15:07
    Alex Skrypnyk
    0

    no

    You can create an event on node creation populate the field with custom code using contentService:

    https://our.umbraco.org/documentation/reference/events/contentservice-events

  • 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