I already asked on discord, but didn't get any advice, so maybe someone here can help
I can't figure out why a custom tab with the form doesn't appear on the page edit. Based on the manual, nothing should've really changed. What's missing in my plugin?
Hi @Karmalakas, should your plugin add a page template or a tab to all pages?
Ok, it looks like this is supposed to be a page, and you’ve already received a working answer. Just tested :)
I see and it works as expected now. I'll just copy @rhuk's response here as a solution:
Nothing's wrong with your blueprint. The catch is the isAdmin() check around onGetPageBlueprints / onGetPageTemplates. Admin2 edits pages through the API plugin, and during an API request isAdmin() is still false when onPluginsInitialized runs, so your plugin never registers its blueprint or template. Subscribe to those two events unconditionally. They only fire when Grav builds its list of page types, so they cost nothing on the frontend:
Then run bin/grav clear, because page types are cached. Also, since your blueprint is its own page type extending default, the tab only appears on pages using the "Image comparer" template, not on every page. That works the same as in classic admin. Our docs still show the isAdmin() version, which is my fault. I'll fix that, and I'll also make the API handle the old pattern so existing plugins work unchanged.