Skip to content

Instantly share code, notes, and snippets.

Created January 27, 2014 18:21
What would you like to do?
@*Start of Component Presentation in View*@
@* or for a 'submodel' (Component Presentation in a Component Presentation) *@
@*Write out MarkUp and value*@
<h2>@XPM.Editable(m => m.Title)</h2>
@*Write out MarkUp and value separately*@
<h2>@XPM.MarkUp(m => m.Title) @Model.Title</h2>
@for (int i = 0; i < Model.RelatedArticles.Count; i++)
<li>@XPM.Editable(m => m.RelatedArticles[i].LinkTitle</li>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment