Skip to content

Instantly share code, notes, and snippets.

@albertromkes

albertromkes/gist:5187099

Last active Dec 15, 2015
Embed
What would you like to do?
@model ArticleViewModel
@{
int counter = 0;
}
@foreach(var relatedLink in Model.RelatedLinks)
{
<div class="cd-list">
@Html.SiteEditField(Model.TridionComponent.Fields["hyperlinks"][counter])
<a href="@relatedLink.Url" title="@relatedLink.Title" class="cd-link-ext" target="_blank">
@Html.SiteEditField(Model.TridionComponent.Fields["Image"][0])
@Html.RenderImage(relatedLink)
</a>
</div>
couner++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.