Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andreas Emtinger 23 posts 185 karma points
    Apr 15, 2020 @ 07:18
    Andreas Emtinger
    0

    Render Nested Content/IPublishedElement

    Hi,

    I did a Nested Content render. I want your help to improve it. It works fine now, but it might need some improvements.

    Please check it out: https://github.com/andemt/Limetta.Umbraco.Demo

    @inherits UmbracoViewPage<HomePage>
    <! -- Render elements: -->
    @Html.Elements(Model.Elements)
    <!-- Or... -->
    @{ Html.RenderElements(Model.Elements); }
    

    If any improvements, I think it's this file: https://github.com/andemt/Limetta.Umbraco.Demo/blob/master/Limetta.Umbraco.Demo.RenderElements/Factories/ElementsRoutingFactory.cs

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies