Copied to clipboard

Flag this post as spam?

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


  • David Hyslop 27 posts 181 karma points
    May 04, 2018 @ 09:34
    David Hyslop
    0

    Hi

    This is will be really easy for someone who knows how.

    I've got a list of child pages that are events.

       @{
                var page = Umbraco.TypedContent(1086);
    
            }
    
            <div class="panel">
                @foreach (var child in page.Children)
                {
    
                   <a href="@child.Url">Link</a>
    
                }
    

    I need to display a list of those pages on another page but need to get more information about them. So I need things like event name (eventName) etc and just cant seem to get them out.

    Can anyone advise.

    Thanks.

  • Marthijn Kip 9 posts 96 karma points
    May 04, 2018 @ 10:08
    Marthijn Kip
    100

    Try:

    @child.GetPropertyValue("eventName")
    
  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    May 04, 2018 @ 10:24
    Alex Skrypnyk
    0
    @child.Name
    
  • David Hyslop 27 posts 181 karma points
    May 04, 2018 @ 10:41
    David Hyslop
    0

    Thanks Marthijn it was that one I needed.

    thought it would be easy.

Please Sign in or register to post replies

Write your reply to:

Draft