Hi, why am I not able to access “Content”, am I missing a reference?
In my view:
@inherits Umbraco.Web.Mvc.UmbracoViewPage
@{
Layout = "kund_unikum_master_t.cshtml";
var currentPage = Model.Content;
}
I get the error
“IPublishedContent does not contain a definition for ‘Content’ and no
extension method ‘Content’ accepting a first argument of type
‘IpublishedContent’ could be found (are you missing a suign directive
or an assembly reference?)”
Best regards /David
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/94606-modelcontent-ipublishedcontent-does-not-contain-a-definition-for-content