Skip to content

Instantly share code, notes, and snippets.

@sebastiandammark
Created November 9, 2015 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebastiandammark/dbd9f6c8a03bc4e3e27b to your computer and use it in GitHub Desktop.
Save sebastiandammark/dbd9f6c8a03bc4e3e27b to your computer and use it in GitHub Desktop.
How to access item properties ?
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{
Layout = null;
var content = CurrentPage.content;
}
@if (Model.Content.HasValue("content")) {
foreach (var item in content)
{
<section>
<h1>item.title</h1>
<div>item.text</div>
</section>
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment