Copied to clipboard

Flag this post as spam?

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


  • Neil 40 posts 205 karma points
    Sep 13, 2024 @ 09:49
    Neil
    0

    Getting data from parent in nested blocks (Umbraco 13)

    Anyone know of a way to access the properties on a content type, from within the controller of a child element (e.g. getting a host page's properties from within a block list item overlay)?

    I want to create a custom property editor on a block list item that inherits it's configuration from data from it's parent - so that all items have the same configuration.

  • Neil 40 posts 205 karma points
    Sep 13, 2024 @ 10:07
    Neil
    0

    The data I need is in

    $scope.$parent.$parent.$parent.$parent.$parent.$parent.$parent.$parent.$parent.$parent.$parent.$parent.$parent.$parent.$parent.$parent.$parent.$parent.$parent.$parent.$parent.$parent.$parent.$parent.group.properties

    but my god that's hideous and probably extreamly fragile - there must be a better way? An injectable service perhaps?

Please Sign in or register to post replies

Write your reply to:

Draft