Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Collections of shows with multiple date performances

Started by Matthieu Clavey 7 years ago · 0 replies · 717 views
7 years ago

Hello everyone,

I am working on a project for a theatre company. I have multiple shows with multiple dates of performances.

I have organized my pages:

pages

  • Shows
    default.md
    • Wonderful Show 1
      show.md
      imageoftheshow.jpg
      • performance1
        performance.md
      • performance2
        performance.md
    • Wonderful Show 2
      show.md
      imageoftheshow.jpg
      • performance1
        performance.md
      • performance2
        performance.md

default.md should contains a collection of shows and dates of performances
show.md contains the description of the show, title etc...
performance.md only contains the date of the performance and eventually additional information for the specific performance.

I want to make a collection of performances ordered by date but grouped by show.

Is my folder organization of pages ok ?

I tried to make a collection in default.md:
content:
items: '@self.descendants'
order:
by: date
dir: asc

Now I have all the shows and performances but I don't know how to group and order them correctly.

Thanks for your advice
Matthieu

Suggested topics

Topic Participants Replies Views Activity
Content & Markdown · by Jochen, 1 year ago
6 1663 1 year ago
Content & Markdown · by Ton Haarmans, 2 years ago
10 1235 2 years ago
Content & Markdown · by Jan L'Am, 2 years ago
4 1099 2 years ago
Content & Markdown · by Leonardo, 2 years ago
3 1002 2 years ago
Content & Markdown · by belthasar, 2 years ago
4 1492 2 years ago