Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Best way to group child pages by year?

Started by Muut Archive 9 years ago · 0 replies · 741 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 2269 9 years ago
Archive · by Muut Archive, 9 years ago
2 1493 9 years ago
Archive · by Muut Archive, 9 years ago
2 4739 9 years ago
Archive · by Muut Archive, 9 years ago
1 3552 9 years ago
Archive · by Muut Archive, 9 years ago
3 1618 9 years ago