Last active
December 13, 2016 18:37
-
-
Save claushingebjerg/7f26f53d1cd90fabbcb3 to your computer and use it in GitHub Desktop.
Render custom LeBlender link to node datatype in grid, partial
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using Umbraco.Web.Templates | |
@inherits UmbracoViewPage<Lecoati.LeBlender.Extension.Models.LeBlenderModel> | |
@foreach (var item in Model.Items) | |
{ | |
if(item.GetValue<string>("more") != null && item.GetValue<string>("more") != ""){ | |
<a href="@Umbraco.TypedContent(item.GetValue<string>("more")).Url">Read more</a> | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment