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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Content & Markdown

Collections of shows with multiple date performances

Started by Matthieu Clavey 7 years ago · 0 replies · 451 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, 8 months ago
6 100 8 months ago
Content & Markdown · by Ton Haarmans, 1 year ago
10 187 1 year ago
Content & Markdown · by Jan L'Am, 1 year ago
4 148 1 year ago
Content & Markdown · by Leonardo, 1 year ago
3 63 1 year ago
Content & Markdown · by belthasar, 1 year ago
4 259 1 year ago