Copied to clipboard

Flag this post as spam?

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


  • John Malone 1 post 71 karma points
    1 week ago
    John Malone
    0

    Edit Link not working - Compile Error on Model.Content

    Hi Paul,

    I really enjoy your youtube channel.

    Also, would love to use Edit Link plugin, but I cannot figure how to use it in my Master page per your instructions.

    My Master page looks like this at the top:

    @inherits UmbracoViewPage

    @using BackOfficeExtensions

    The body looks like this:

    @Html.UmbracoEditLink(Model.Content)
    

    I am getting an error on Model.Content - IPublishedContent does not contain a definition for Content...

    I'm guessing this is because I am inheriting UmbracoViewPage and not UmbracoTemplatePage. Is there a way to make this work?

    John

  • Paul Seal 427 posts 2331 karma points MVP 3x c-trib
    1 week ago
    Paul Seal
    0

    Hi John The one which works with Umbraco v8 is call Our.Umbraco.EditLink

    It looks like you’ve got the old one which works with v7

Please Sign in or register to post replies

Write your reply to:

Draft