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 · 535 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 Vladimir Novak, 2 weeks ago
3 291 2 weeks ago
Plugins · by Mathieu Lecouturier, 3 weeks ago
3 277 3 weeks ago
Plugins · by Slebeig, 2 months ago
1 403 2 months ago
Plugins · by Rene, 2 months ago
2 574 2 months ago
Plugins · by Xavier, 3 months ago
2 490 3 months ago