Copied to clipboard

Flag this post as spam?

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


  • Jhon 87 posts 161 karma points
    Apr 17, 2018 @ 13:25
    Jhon
    0

    Links of Error

    Hi Michael,

    I have written below code , it is getting error. What is the mistake, Can you please share me.

    enter image description here

    See output:

    Compiler Error Message:'Umbraco.Core.Models.IPublishedContent' does not contain a definition for 'linkToClip' and an extension method 'linkToClip' was not found that accepts a first argument of the type 'Umbraco.Core.Models.IPublishedContent' (if you're missing a ' using 'directive or a assembly reference?)

    enter image description here

    My document type:

    enter image description here

  • Michaël Vanbrabandt 863 posts 3343 karma points c-trib
    Apr 17, 2018 @ 13:34
    Michaël Vanbrabandt
    0

    Hi Jhon,

    You have to use the following:

    href="@klip.GetPropertyValue("linkToClip")"
    

    Hope this helps.

    /Michaël

  • Michaël Vanbrabandt 863 posts 3343 karma points c-trib
    Apr 19, 2018 @ 08:27
    Michaël Vanbrabandt
    0

    Hi Jhon,

    make sure to mark the anwser which solved your issue.

    Thanks!

    /Michaël

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies