Copied to clipboard

Flag this post as spam?

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


  • charlie black 33 posts 106 karma points
    Apr 30, 2014 @ 01:43
    charlie black
    0

    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?

     

     

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    May 03, 2014 @ 16:08
    Jan Skovgaard
    0

    Hi Charlie

    Do you still struggle with this issue?

    I believe you should be able to write CurrentPage.yourpropertyname ?

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft