This file contains 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
[InlineEditable] | |
public class Article : IArticle | |
{ | |
[InlineEditableField(FieldName="title")] | |
public string Title {get;set;} | |
[InlineEditableField(FieldName="short_intro")] | |
public string Summary {get;set;} | |
private IList<string> _relatedLinks = new List<string>(); |
This file contains 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
@model ArticleViewModel | |
@foreach(var relatedLink in Model.RelatedLinks) | |
{ | |
<div class="cd-list"> | |
@relatedLink.XPMMarkUp | |
<a href="@relatedLink.Url" title="@relatedLink.Title" class="cd-link-ext" target="_blank"> | |
@relatedLink.Image.XPMMarkUp | |
@Html.RenderImage(relatedLink) | |
</a> |
This file contains 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
@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]) |
NewerOlder