Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@*Start of Component Presentation in View*@
@XPM.StartInlineEditingZone()
@* or for a 'submodel' (Component Presentation in a Component Presentation) *@
@XPM.StartInlineEditingZone(Model.Teaser)
@*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>
@*Lists*@
@for (int i = 0; i < Model.RelatedArticles.Count; i++)
{
<li>@XPM.Editable(m => m.RelatedArticles[i].LinkTitle</li>
}
@*Region*@
<div>
@XPM.RegionMarkup("PageHeader")
</div>
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.