Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Nesting collections

Started by Muut Archive 11 years ago · 5 replies · 661 views
11 years ago

my file tree looks something like this:

TXT
pages
   journeys
      journey
         day

journeys:

YAML
content:
   items: @self.children

journey:

YAML
content:
   items: @self.children

how can I address nested collections in code?

thank you!

11 years ago

I think the best option is to use taxonomy for your collection rather than @self.children so that way you will have much more control.

11 years ago

could you provide some code as an idea ? Thanks!

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2607 9 years ago
Archive · by Muut Archive, 9 years ago
2 1714 9 years ago
Archive · by Muut Archive, 9 years ago
2 5009 9 years ago
Archive · by Muut Archive, 9 years ago
1 3838 9 years ago
Archive · by Muut Archive, 9 years ago
3 1819 9 years ago