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 3 posts 73 karma points
    Nov 11, 2020 @ 14:57
    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 524 posts 2889 karma points MVP 6x c-trib
    Nov 11, 2020 @ 19:18
    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