Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
With Nested Content in core will I be able to query any of my nested content properties as strongly typed models?
Short answer - no it hasn't changed - in 7.7.2 nested content items still return IEnumerable<IPublishedContent> so you can't query them in a linq way.
As there are content types in the nested content - there will be a model for the class generated so you can construct that from the IPublishedContent item and use it like a model.
e.g. this in the current starter-kit product.cshtml page
@if (Model.Content.Features != null)
foreach (var feature in Model.Content.Features)
@foreach (var feature in Model.Content.Features)
var featureModel = new ContentModels.Feature(feature);
n.b the starter kit has
@using ContentModels = Umbraco.Web.PublishedContentModels;
at the top of the view. so that the ContentModels.Feature(feature) line is really new Umbraco.Web.PublishedContentModels.Feature(feature)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted