From an umbraco 4.7.2 installation I have some cshtml pages that@inherits UmbraMVCo.RenderViewPage and that use Model.CurrentNode;
But we have upgraded to 6.1.6 and now get compilation error:
'Umbraco.Web.Models.RenderModel' does not contain a definition for 'CurrentNode' and no extension method 'CurrentNode' accepting a first argument of type 'Umbraco.Web.Models.RenderModel' could be found
What to do with Model.CurrentNode.....
From an umbraco 4.7.2 installation I have some cshtml pages that@inherits UmbraMVCo.RenderViewPage and that use Model.CurrentNode;
But we have upgraded to 6.1.6 and now get compilation error:
'Umbraco.Web.Models.RenderModel' does not contain a definition for 'CurrentNode' and no extension method 'CurrentNode' accepting a first argument of type 'Umbraco.Web.Models.RenderModel' could be found
What do I do?
Hi Charlie
Do you still struggle with this issue?
I believe you should be able to write CurrentPage.yourpropertyname ?
/Jan
is working on a reply...