Issue description
In the code samples Nested Content is used and delivered as IEnumerable<IElement>:
|
public IEnumerable<IElement> Elements { get; set; } |
However I can't find any examples how to get content from Block List property and how to loop the blocks or just select content as IEnumerable<IElement> .. and then in razor view or controller cast a specific block type?
Since Nested Content is deprecated and will be removed in an upcoming release or Umbraco (and probably in Heartcore as well), I think it should be practise as use Block List instead.
Based on the roadmap it seems Block Grid soon is supported as well:
https://umbraco.com/products/knowledge-center/roadmap/
Issue description
In the code samples Nested Content is used and delivered as
IEnumerable<IElement>:Umbraco.Headless.Client.Net/samples/Umbraco.Headless.Client.Samples.Web/Umbraco.Headless.Client.Samples.Web/Models/Frontpage.cs
Line 16 in f7e3c17
However I can't find any examples how to get content from Block List property and how to loop the blocks or just select content as
IEnumerable<IElement>.. and then in razor view or controller cast a specific block type?Since Nested Content is deprecated and will be removed in an upcoming release or Umbraco (and probably in Heartcore as well), I think it should be practise as use Block List instead.
Based on the roadmap it seems Block Grid soon is supported as well:
https://umbraco.com/products/knowledge-center/roadmap/