Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save amirkhan81/5cde6f1073fa14518d5af6ff2ded9813 to your computer and use it in GitHub Desktop.
Save amirkhan81/5cde6f1073fa14518d5af6ff2ded9813 to your computer and use it in GitHub Desktop.
foreach (var prop in Model.Content.Properties)
{
/* get each property value */
var value = prop.Value;
}
@amirkhan81
Copy link
Author

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{
    Layout = null;
}

<h1>List Properties</h1>
<h1>@Model.Content.Name</h1>
@foreach (var prop in Model.Content.Properties)
{
    /* get each property value */
    var value = prop.Value;
    <p>@value - @prop.PropertyTypeAlias</p>
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment