Skip to content
Grav 2.0 is officially stable. Read the announcement →
Content & Markdown

Collections of shows with multiple date performances

Started by Matthieu Clavey 7 years ago · 0 replies · 563 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, 10 months ago
6 726 10 months ago
Content & Markdown · by Ton Haarmans, 1 year ago
10 625 1 year ago
Content & Markdown · by Jan L'Am, 1 year ago
4 547 1 year ago
Content & Markdown · by Leonardo, 1 year ago
3 472 1 year ago
Content & Markdown · by belthasar, 2 years ago
4 817 2 years ago