-
-
Notifications
You must be signed in to change notification settings - Fork 564
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
Add hooks for content #1511
Comments
Does the content hooks work (or rather should they work) the same as for pages, posts and comments? If so, I might have a go on this one if no one beats me to it (I'm messing around with similar stuff anyway). |
As we're not changing the implementation at this point they should work exactly the same as for pages & posts! |
The base class for content is |
It was all very clear until we introduced a top level model with |
Ah, kinda suspected that but good to know. |
In /// <summary>
/// Gets the hooks available for generic content.
/// </summary>
public ServiceHooks<GenericContent> GenericContent { get; } = new ServiceHooks<GenericContent>(); |
The classic hooks (
OnLoad
,OnBeforeSave
,OnAfterSave
,OnBeforeDelete
,OnAfterDelete
) should be available for content.The text was updated successfully, but these errors were encountered: