Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Best way to group child pages by year?

Started by Muut Archive 9 years ago · 0 replies · 782 views
9 years ago

Is there an automated (future proof) way of grouping all child pages into years, using their date attribute?

I considered iterating over them all and doing something when the prior page's year doesn't match the year of the next page, but I think that has it's downsides.

Any suggestions welcome.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2563 9 years ago
Archive · by Muut Archive, 9 years ago
2 1689 9 years ago
Archive · by Muut Archive, 9 years ago
2 4980 9 years ago
Archive · by Muut Archive, 9 years ago
1 3804 9 years ago
Archive · by Muut Archive, 9 years ago
3 1798 9 years ago