Copied to clipboard

Flag this post as spam?

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


  • Sebastian Dammark 583 posts 1407 karma points
    Nov 09, 2015 @ 13:13
    Sebastian Dammark
    0

    Accessing Nested Content properties in Razor

    I have a Nested Content property on my node called content. For some reason I don't get anything when I use item.whatever inside a foreach (var item in content) loop

    https://gist.github.com/sebastiandammark/dbd9f6c8a03bc4e3e27b

    I guess I need to do something about item before I can access the properties

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Nov 09, 2015 @ 13:26
    Dennis Aaen
    100

    Hi Sebastian,

    Try to see this https://github.com/leekelleher/umbraco-nested-content/blob/develop/docs/assets/pdf/Nested-Content--Developers-Guide-v1.0.pdf

    On page 10 you have a example on how to accessing Nested Content properties in Razor

    Hope this helps,

    /Dennis

  • Sebastian Dammark 583 posts 1407 karma points
    Nov 09, 2015 @ 14:57
    Sebastian Dammark
    0

    Of course, the documentation :) Thanks.

  • 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