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 →

Hook Save on a page into admin

Started by Muut Archive 10 years ago · 2 replies · 695 views
10 years ago

Hello,

Does anybody could explaine me how to hook save into admin please ?
More exactly i need to hook the directory creation method. I'd like to create a special directory structure on page with some attributes.

Thanks for your help :-).

Regards

10 years ago

You could use the Grav API docs and look for an appropriate method, probably 'createFolder' and then find that function in the Grav source code.

10 years ago

Hello, i succeded hook with

TXT
public function onAdminSave(Event $event)

I could change for example path, but i permission denied error.

Any idea on how to surround this please ?

Regards,

Suggested topics

Topic Participants Replies Views Activity
Archive · by Muut Archive, 10 years ago
1 672 1 week ago
Archive · by Deleted User, 9 years ago
0 3042 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5336 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago