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

Collections of shows with multiple date performances

Started by Matthieu Clavey 7 years ago · 0 replies · 594 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, 11 months ago
6 962 11 months ago
Content & Markdown · by Ton Haarmans, 1 year ago
10 764 1 year ago
Content & Markdown · by Jan L'Am, 2 years ago
4 676 2 years ago
Content & Markdown · by Leonardo, 2 years ago
3 602 2 years ago
Content & Markdown · by belthasar, 2 years ago
4 985 2 years ago