getgrav / getgrav/grav-learn

Taxonomy blueprint question

Open
#830 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
248
Forks
753
Avg merge
1d 6h
Merged PRs (30d)
8

Description

Hi,
I am a bit lost when defining the taxonomy blueprints. I am not sure if my required solution is either not possible, or if I am doing something wrong. After I find out, I would correct the docs, if possible.

Page:
https://github.com/getgrav/grav-learn/blob/develop/pages/06.forms/01.blueprints/01.fields-available/docs.md
https://learn.getgrav.org/16/forms/blueprints/fields-available#taxonomy-field

What I want to do:
* Add a selection box for categories and tags to my blueprint
* Do NOT add all other defined taxonomies (currently ALL are added, but not all are relevant in this blueprint)
* Only allow a SINGLE selection for categories.
* Make categories required
* Add default values for categories and ONLY allow those predefined values
* Tags should be free to define

To me it seems that I can only add ALL taxonomies, add options and default to them, but I cannot limit their count or values. It also looks to me that the lable option does nothing at all, as well as the multiple and required option!?

Some forum users have the same issue:
https://discourse.getgrav.org/t/show-only-a-specific-taxonomy-in-a-page-blueprint/3328/5

Contributor guide

No contributing guide indexed for this repository

Research direction

Read pages/06.forms/01.blueprints/01.fields-available/docs.md and compare it with the linked taxonomy-field page. Check whether the documented taxonomy blueprint options cover the requested filtering, single selection, required fields, defaults, and free-form tags. Done means clarifying the supported behavior in the documentation, or recording that the requested behavior is not available.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.