Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Using a taxonomy + page.children collection

Started by Muut Archive 10 years ago · 2 replies · 721 views
10 years ago

This should get all the pages tagged "featured" in the /directory folder, correct? I'm trying to get all the pages marked as featured in the /directory folder.

YAML

    items:
        -
            '@page.children': /directory
        -
            '@taxonomy':
                category: [featured]
10 years ago

Reading some more, and have discovered that the markup will make the sum of the two entries.

I've added the "listing" tag to all the pages in /directory (along with the previous pages tagged as "featured") and am trying to use the following but it isn't working either:

YAML

content:
    items:
        '@taxonomoy.tag': [featured, listing]
10 years ago
YAML

content:
    items:
        '@taxonomy':
            tag:
                - featured
                - listing

This appears to work.
👍 1

Suggested topics

Topic Participants Replies Views Activity
Archive · by Muut Archive, 10 years ago
1 674 1 week ago
Archive · by Deleted User, 9 years ago
0 3043 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5337 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago