Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

Plugin Integration with the admin plugin

Started by Steven Spungin 8 years ago · 0 replies · 642 views
8 years ago

I recently spent some time writing plugins that integrated with grav-core and the admin plugin. I found it really frustrating that the admin plugin hijacked many services and deviated from the general architecture. In particular:

  1. Pages under plugin/admin/pages do not get put into folders like pages in user/pages

  2. Additional (generic) events are fired by admin and seem to be better located in core. (such as onPageNotFound and onAdminTwigTemplatePaths)

  3. Multiple forms defined front-matter pages under /admin/pages are not recognized.

So I fixed or worked around these issues, and now raise this design question up for discussion:

There are circular dependencies between admin and grav core. How does everyone feel about the dependency issue? Should it be refactored?

If I spend time migrating my fixes for a PR, should they be in admin, or grav-core?

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Rene, 1 week ago
2 47 1 week ago
Plugins · by Xavier, 4 weeks ago
2 56 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1182 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 50 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 74 2 months ago