Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Getting a Specific Taxonomy in PHP

Started by Claud Rusnac 7 years ago · 0 replies · 575 views
7 years ago

I have a the following page front matter:

YAML
title: Integrated Information Security Analysis Team
taxonomy:
    category: ['docs']
    policy: ['im']
    id: ['im-05']
modified_date: 07/17/2017

I am writing a plugin where I need to pull the $page->taxonomy(id); but that doesn't seem to work? How do I read that value using php?

Suggested topics

Topic Participants Replies Views Activity
Plugins · by complanar, 5 days ago
0 117 5 days ago
Plugins · by Vladimir Novak, 1 month ago
3 581 1 month ago
Plugins · by Mathieu Lecouturier, 1 month ago
3 394 1 month ago
Plugins · by Slebeig, 2 months ago
1 509 2 months ago
Plugins · by Rene, 3 months ago
2 702 3 months ago