Umbraco 15 - How to get block alias in a BlockGrid sidebars property editor

Hello Jesper.

I think I am also trying to find the answer to this (Retrieving the alias of a block in a custom property editor)

I have been trying to look through the different Context’s that are available, but so far I can’t find out what I need to use to get the alias of the block that you’re currently editing.

I am hoping it’ll be slightly easier for us to find, because in previous versions (13), I was having to do this:

"let alias = $scope.$parent.$parent.$parent.$parent.$parent.$parent.$parent.$parent.$parent.$parent.$parent.model.content.contentTypeAlias;"

Will let you know if I find anything.

Thanks,
Rob

1 Like