Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a hook for after saving a page? #417

Closed
michaellockwood opened this issue Oct 23, 2018 · 1 comment
Closed

Is there a hook for after saving a page? #417

michaellockwood opened this issue Oct 23, 2018 · 1 comment

Comments

@michaellockwood
Copy link

Hi, I've been looking into the hooks but so far have been unable to find a hook for when a page is saved and just wondered if it's something I'm missing or if that feature doesn't exist?

I've tried adding the following in my startup and putting breakpoints in each lambda which does work when I save one of these types:

            Piranha.App.Hooks.Alias.RegisterOnAfterSave(model =>
            {

            });

            Piranha.App.Hooks.Category.RegisterOnAfterSave(model =>
            {

            });

            Piranha.App.Hooks.Media.RegisterOnAfterSave(model =>
            {

            });

            Piranha.App.Hooks.MediaFolder.RegisterOnAfterSave(model =>
            {

            });

            Piranha.App.Hooks.Param.RegisterOnAfterSave(model =>
            {

            });

            Piranha.App.Hooks.Site.RegisterOnAfterSave(model =>
            {

            });

            Piranha.App.Hooks.Tag.RegisterOnAfterSave(model =>
            {

            });
@tidyui
Copy link
Member

tidyui commented Oct 23, 2018

No you're right, only hooks for the simple content models were finished and the others were forgotten over time. I'll add an issue for it for the 5.3 version.

@tidyui tidyui added this to the Version 5.3 milestone Oct 23, 2018
@tidyui tidyui added the request label Oct 31, 2018
@tidyui tidyui removed this from the Version 5.3 milestone Nov 14, 2018
@tidyui tidyui added this to the Version 6.0 milestone Feb 28, 2019
@tidyui tidyui mentioned this issue Mar 3, 2019
@tidyui tidyui self-assigned this Mar 3, 2019
@tidyui tidyui closed this as completed Mar 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants