Copied to clipboard

Flag this post as spam?

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


  • Rik Helsen 670 posts 873 karma points
    Sep 17, 2015 @ 14:51
    Rik Helsen
    0

    grouping nodes in razor

    using Umbraco 7.3 I have a set of data in a flat list, every document has a property "organisation" and a date.

    I want to display this information as such:

    • Organisation A
      • 2015 (year from publicationdate)
      • item 1
      • item 2
      • item 3
      • 2014
      • item 4
      • item 5
      • item 6
    • Organisation B
      • 2015 (year from publicationdate)
      • item 1
      • item 2
      • item 3
      • 2014
      • item 4
      • item 5
      • item 6

    Who can show me what you consider best practice to do so?

    enter image description here

    Thanks, Rik

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Sep 18, 2015 @ 08:58
    Alex Skrypnyk
    0

    Hi Rik,

    Do you want to do it in Razor ? Can you show code that you used ?

    Thanks, Alex

  • 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