Hi, I'm trying to port something over from a v8 site where I could access the properties of a page from within a blocklist editor using the following, but I'm not sure how to access UmbracoContext in v11.
var content = Current.UmbracoContext.PublishedRequest.PublishedContent;
Access UmbracoContext in v11
Hi, I'm trying to port something over from a v8 site where I could access the properties of a page from within a blocklist editor using the following, but I'm not sure how to access UmbracoContext in v11.
In Umbraco views you can use Umbraco.AssignedContentItem to access the current Umbraco published content item. Is this what you need?
is working on a reply...