Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Admin Hooks

Started by Muut Archive 11 years ago · 2 replies · 469 views
11 years ago

Is there a list of plugin hooks for the admin? I noticed that the simple search plugin used one to register its page type, but couldn't find any documentation of them.

11 years ago

There's only a few and they are not documented yet. Basically we have:

  • onGetPageTemplates(Event) -> for adding page templates (see simplesearch plugin)
  • onBlueprintCreated(Event)-> for injecting into page blueprints (see feed plugin)
  • onAdminTemplateNavPluginHook() -> for adding into the Admin sidebar (see data-manager plugin)

Suggested topics

Topic Participants Replies Views Activity
Archive · by Muut Archive, 10 years ago
1 713 2 weeks ago
Archive · by Deleted User, 9 years ago
0 3073 9 years ago
Archive · by Muut Archive, 9 years ago
2 2014 9 years ago
Archive · by Muut Archive, 9 years ago
2 5370 9 years ago
Archive · by Muut Archive, 9 years ago
1 4165 9 years ago