Copied to clipboard

Flag this post as spam?

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


  • Snow lizard 36 posts 106 karma points
    Oct 07, 2016 @ 15:29
    Snow lizard
    0

    Razor create info panel below child items

    Hi,

    I'm totally stuck here. I have a page with a number of child pages and i'm trying to create this layout.

    http://www.excalibur-publishing.com/collections/software

    Each thumbnail displays an infobox below the row or 3.

    I'm having a problem with creating the info box below the thumbnails. Does anyone have any ideas on how to create this?

    Thanks

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Oct 11, 2016 @ 16:02
    Alex Skrypnyk
    0

    Hi Alan

    What do you mean infobox?

    Can you share code of your view with us?

    Thanks,

    Alex

  • Snow lizard 36 posts 106 karma points
    Oct 25, 2016 @ 08:05
    Snow lizard
    101

    Hi Alex thanks for the reply.

    I managed to get what I wanted by using

    @foreach(var group in CurrentPage.Site().FirstChild("gameCatalogue").Children.Where("Visible").Take(12).InGroupsOf(3)) {

    }

    foreach(var item in group) {

    Display panel
    }

    Thanks

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Oct 25, 2016 @ 14:04
    Alex Skrypnyk
    0

    Hi Alan,

    Thanks for sharing!

    Great solution, but be aware that now strongly typed traversing is better, I mean:

    Umbraco.AssignedContentItem.AncestorOrSelf(1)
    

    Have a nice day!

    Alex

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Nov 07, 2016 @ 11:27
    Alex Skrypnyk
    0

    Hi Alan

    Did you find solution?

    Can you share with our community?

    Thanks,

    Alex

  • Snow lizard 36 posts 106 karma points
    Nov 07, 2016 @ 11:47
    Snow lizard
    0

    Hi Alex, I've marked the solution as above. Thanks

Please Sign in or register to post replies

Write your reply to:

Draft