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

Hook Save on a page into admin

Started by Muut Archive 9 years ago · 2 replies · 492 views
9 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

9 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.

9 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 Deleted User, 9 years ago
0 1318 9 years ago
Archive · by Muut Archive, 9 years ago
2 915 9 years ago
Archive · by Muut Archive, 9 years ago
2 4044 9 years ago
Archive · by Muut Archive, 9 years ago
1 2920 9 years ago
Archive · by Muut Archive, 9 years ago
3 1104 9 years ago