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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

Getting a Specific Taxonomy in PHP

Started by Claud Rusnac 7 years ago · 0 replies · 416 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 Rene, 1 week ago
2 43 1 week ago
Plugins · by Xavier, 4 weeks ago
2 53 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1179 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 48 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 72 2 months ago