getgrav / getgrav/grav-plugin-admin

Restricting the taxonomy types shown

Open
#1,060 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
PHP
Stars
377
Forks
225
Avg merge
11h 51m
Merged PRs (30d)
4

Description

How would I go about only showing one - or a selection of the available - taxonomy types for editing in the admin when using the `type: taxonomy` field?

Currently, whenever this field is used, *selectize*y fields for all taxonomy types set up in `user/config/site.yaml` are shown.

The docs don't seem to make this obvious. I've figured out that if I were able to set [this `taxonomies` variable](https://github.com/getgrav/grav-plugin-admin/blob/develop/themes/grav/templates/forms/fields/taxonomy/taxonomy.html.twig#L1), this would be possible, but I can't see how to do this via my blueprint.

Contributor guide

Open the contributing guide

Research direction

Start with themes/grav/templates/forms/fields/taxonomy/taxonomy.html.twig and the taxonomies variable mentioned in the issue. Check how a blueprint could control the taxonomy selection, using user/config/site.yaml as the configuration context; done means the supported configuration is documented clearly or the missing blueprint option is specified.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.