pikim / grav-plugin-events

This plugin provides Calendar Events for Grav CMS
MIT License
13 stars 11 forks source link

Admin form field for filtering an events list by category #28

Open floriandammeyer opened 1 year ago

floriandammeyer commented 1 year ago

You can filter an events list (= page type "events") by using the category taxanomy in the front matter like so:

content:
    items:
        '@taxonomy':
            type: event
            category: my-event-category

As far as I understood, the content.items.@taxanomy.type of the front matter corresponds to the form field "Taxonomy Type" which is shown in the "Events" tab of an "events"-page in the admin. Apparently, there is no such form field for filtering by category, so you have to edit the front matter manually if you want to filter by category.

Adding a form field to filter by category would be very helpful for editors of our site who are not proficient in programming. Ideally this form field would suggest existing categories just like the form field in the "Options" tab does.

pikim commented 1 year ago

I think I don't understand what you mean. Would you mind to write me an email and discuss that topic in German? You can find my address in the plugins blueprints.yaml.