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.
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.
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?
is working on a reply...