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

Collection help

Started by Muut Archive 11 years ago · 1 replies · 193 views
11 years ago

The documentation shows an example of fetching a collection of pages from the same directory as the list page.

YAML
content:
  items: @self.children

How would I get a collection from a different directory? Do I just replace @self with a directory name?

e.g:

YAML
content:
  items: blog.children
11 years ago

I figured it out using @taxonomy which lead to some other issues that require a new topic probably.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1326 9 years ago
Archive · by Muut Archive, 9 years ago
2 920 9 years ago
Archive · by Muut Archive, 9 years ago
2 4050 9 years ago
Archive · by Muut Archive, 9 years ago
1 2928 9 years ago
Archive · by Muut Archive, 9 years ago
3 1107 9 years ago