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

A little complex collection?

Started by Muut Archive 10 years ago · 1 replies · 343 views
10 years ago

Hi all,

i like to get a collection that shows all subpages of specific taxonomy (or page type) XYZ.

YAML
content:
  items:
    - '@self.children'
    - '@taxonomy':
         category: [blog, featured]

=> Returns all children AND all pages with specified taxonomy ... not all children WITH specified taxonomy.

Is there a way to do this within frontmatter or do i have to write a PHP Plugin that i can use?

Any hints are appreciate!

Greets, Chris

10 years ago

By the way, i'd like to use the pagination plugin ... otherwise i would loop through the results and get rid of the unwanted children that are not taxonomy.category = [blog, featured]

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1352 9 years ago
Archive · by Muut Archive, 9 years ago
2 935 9 years ago
Archive · by Muut Archive, 9 years ago
2 4064 9 years ago
Archive · by Muut Archive, 9 years ago
1 2949 9 years ago
Archive · by Muut Archive, 9 years ago
3 1119 9 years ago