Skip to content

Instantly share code, notes, and snippets.

@trnktms
Last active January 15, 2021 07:32
Embed
What would you like to do?
@model ChildrenBlockModel
@foreach (var child in Model?.Children ?? Enumerable.Empty<ItemLinkField<ContentBlockModel>>())
{
@await Html.PartialAsync("/Views/Shared/Components/SitecoreComponent/ContentBlock.cshtml", child.Fields)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment