We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44649
    • 68 Posts
    Would anyone know a package/way to group output by dates? e.g.

    March 1st
    - Event 1, Time, Venue
    - Event 2, Time, Venue

    March 3rd
    - Event 3, Time, Venue
    - Event 4, Time, Venue
    - Event 5, Time, Venue

    March 5th
    - Event 6, Time, Venue

    Each event would have it's own page and be idealy pulled in with getResources or Collections?! But I can't figure out how to group them up under Date headings, any help appreciated!

    This question has been answered by comp_nerd26. See the first response.

    • discuss.answer
      • 47401
      • 295 Posts
      getresources pulls a php array. you could pass this data to a snippet and use php code then to sort the grouping.
        • 5430
        • 247 Posts
        I assume your collection of event pages has not hierarchy and can't be grouped in this way in your resource tree? If so, are you needing to generate the date headings dynamically by determining which dates are present in your events or are the dates predefined? That would make a very big difference.