Copied to clipboard

Flag this post as spam?

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


  • Elliott Brown 41 posts 211 karma points
    Nov 28, 2023 @ 11:51
    Elliott Brown
    0

    Accessing blocklistitem udi from angular controller

    I'm trying to create a custom back office view in Umbraco. I need to get a blockListItem by it's udi as it's settings contain values that I will use to generate classes and make the backoffice view look like the front end.

    $scope.block.settingsData contains a list of settings properties, and in my case a list of BlockListItems. What I'd like to do is get the udi of each blocklistitem and pass that through to a controller where I will get the blocklistitem by it's udi (if possible) and then access the settings. Unfortunately because of the way I've set this up I need access to the blockListItem.

    Can anyone help? Thank you!

Please Sign in or register to post replies

Write your reply to:

Draft