getgrav / getgrav/grav-plugin-admin

“Add modal” blueprints not picked from theme’s blueprints folder

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

Description

Would anyone know how to make admin “see” blueprints specified via add_modal configuration option within theme’s blueprints folder?

If I place ‘admin/pages/new_post.yaml’ under ‘user/blueprints’ it works. If I place it under ‘theme/active_theme/blueprints’ it does not work.

I’ve gone as far as doing scanBlueprints() within an appropriate event handler in the theme - nothing.

https://github.com/getgrav/grav-plugin-admin/blob/ac41a3a57a9274c96d64ef0ce9643406deff685e/themes/grav/templates/pages.html.twig#L360

Contributor guide

Open the contributing guide

Research direction

Start by tracing the add_modal configuration and the blueprint discovery path around themes/grav/templates/pages.html.twig#L360. Compare the working user/blueprints path with theme/active_theme/blueprints, and inspect the scanBlueprints() call mentioned in the issue. Done means an admin modal blueprint in the theme’s blueprints folder is discovered and usable.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.