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

Getting a Specific Taxonomy in PHP

Started by Claud Rusnac 7 years ago · 0 replies · 505 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 Mathieu Lecouturier, 6 days ago
3 131 3 days ago
Plugins · by Slebeig, 4 weeks ago
1 296 4 weeks ago
Plugins · by Rene, 2 months ago
2 455 2 months ago
Plugins · by Xavier, 2 months ago
2 373 2 months ago
Plugins · by Luka Prinčič, 7 years ago
3 1597 2 months ago