Copied to clipboard

Flag this post as spam?

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


  • Nicolai Winch Kristensen 50 posts 70 karma points
    Dec 10, 2012 @ 15:40
    Nicolai Winch Kristensen
    0

    Multi URL-picker with Razor

    Hi there

    Can anybody tell me why this does not work:

    I actually copy pasted it from another solution I made where it works. So my theory is right now that its how I created the uComponent Data type that makes the problem, cause the script saves well and its only when I refer to the specific datatype, an error on frontend is thrown.

    Ive have set it to "XML" on the datatype and database type as "nText". 

     

    @{
    foreach (var link in Model.NodeById(1073).bottomMenu.urlpicker)
      {
          <li><a href="@link.url"@Html.Raw(link.newwindow =="True"?"target=\"_blank\"":"")>@link.linktitle</a></li>  
      }  
    }

  • 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