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

Using a taxonomy + page.children collection

Started by Muut Archive 10 years ago · 2 replies · 521 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 Deleted User, 9 years ago
0 1361 9 years ago
Archive · by Muut Archive, 9 years ago
2 939 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2958 9 years ago
Archive · by Muut Archive, 9 years ago
3 1123 9 years ago