Content

The set of content events allows modules to respond to content operations. 

system.beforeContentSave

Issued before content is saved, the content can be modified in the handler if required.

Parameter Description
isNew Flags if new content or an update.
contentData The content that's about to be saved.
customFields Array of custom fields.

system.afterContentSave

Issued before after the content has been saved.

Parameter Description
id The ID of the content.
isNew Flags if new content or an update.
contentData The content that's about to be saved.
customFields Array of custom fields.

system.afterContentDelete

Issued after a content item has been deleted.

Parameter Description
id ID of the document that has been deleted.

system.beforePageRender

Issued before a content page is rendered in the public interface of the site.

Parameter Description
templateEngine An instance of cfTemplateEngine that will be used to render the output.

system.beforeAdminPageRender

Issued before a content page is rendered in the manager interface of the site.

Parameter Description
templateEngine An instance of cfTemplateEngine that will be used to render the output.



TOP