I’m currently testing my theme with Grav CMS 2 (dev) and the new Admin2 Plugin, and I’ve run into an issue with page blueprints.
In Grav 1.x, I define custom fields for pages via my theme’s blueprints (for example, additional options under the Page configuration, not the theme config), and they show up correctly in the Admin panel.
However, in Grav 2 + Admin2:
My custom page blueprint fields are not in the Admin UI
Only the default fields (title, content, media, taxonomy, etc.) are visible
It seems like my theme’s page-level blueprint extensions are being ignored
What I’m doing
In my theme, I define custom fields in page blueprints, something along the lines of:
I ran into this issue some time ago, and somehow the filename of the page got changed which resulted in the blueprint not being picked up - perhaps just double-check the right filename and matching blueprint filename are as expected?
I am using Admin2 with custom blueprints and do not remember doing any additional steps.
First of all, thank you for investing in the further development of our beloved CMS, Grav. I have installed Grav 2.0.0-rc.1 with the new default theme, Quark 2.
At this stage of development, I’m running into problems or am stuck:
In the Quark 2 themes directory, I can’t find the Blueprints directory containing the YAML files for the corresponding templates (blog.yaml, item.yaml, etc.). Or are these no longer needed?
I have created a blog page using the Blog template and three blog posts using the Item template. The three posts are not listed on the blog overview page. Furthermore, the Previous Post/Next Post buttons do not work.
Previously, there was a button on every page that allowed you to create a (usually sub)page directly. I can’t find this button.
Hi @idna - I am not sure of the stare of the unreleased Quark2 theme but it would be helpful if you could please add an issue about this to the repo about this issue : Issues · getgrav/grav-theme-quark2 · GitHub
I definitely don’t know what’s going on with my computer, because suddenly everything started working. I don’t know if it’s due to an update of the API plugins, Admin2, or something else, but in all themes I maintained everything seems to be working the same as in Grav 1.7.x.