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.

Themes & Styling

Taxonomy and Variables

Started by Claud Rusnac 5 years ago · 1 replies · 414 views
5 years ago

I have a variable set (version) in my site.yaml to specify the content version, and I would like to use that variable in my taxonomy, but I am getting an error. Is this possible?

YAML
title: Introduction
taxonomy:
    category: ['docs']
    effective: ['in-effect']
    audience: ['general-users']
    version: {{site.version}}
5 years ago

@crusnac, AFAIK, Twig expressions in taxonomy values do not get parsed.

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by Pedro M, 2 months ago
4 193 2 months ago
Themes & Styling · by Ian, 2 months ago
3 91 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 451 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 45 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 125 3 months ago