Feature proposal #6405
closedImplement gallery push triggers
Description
Currently there's no trigger fired when a new gallery entry is added on frontend to a gallery beyond the table class store trigger, which does not include the gallery object. The push triggers should be like CB Activity usage that includes the new object (e.g. album or item) and the gallery object it self.
Updated by krileon almost 8 years ago
It's this or include the $gallery object with the ->store trigger. Either one should be acceptable.
Updated by krileon over 7 years ago
- Status changed from Assigned to Resolved
- % Done changed from 0 to 100
The following triggers are now available.
gallery_onBeforeUpdateGalleryFolder
gallery_onBeforeCreateGalleryFolder
gallery_onAfterUpdateGalleryFolder
gallery_onAfterCreateGalleryFolder
gallery_onBeforeDeleteGalleryFolder
gallery_onAfterDeleteGalleryFolder
gallery_onBeforePublishGalleryFolder
gallery_onBeforeUnpublishGalleryFolder
gallery_onAfterPublishGalleryFolder
gallery_onAfterUnpublishGalleryFolder
gallery_onBeforeUpdateGalleryItem
gallery_onBeforeCreateGalleryItem
gallery_onAfterUpdateGalleryItem
gallery_onAfterCreateGalleryItem
gallery_onBeforeDeleteGalleryItem
gallery_onAfterDeleteGalleryItem
gallery_onBeforeRotateGalleryItem
gallery_onAfterRotateGalleryItem
gallery_onBeforePublishGalleryItem
gallery_onBeforeUnpublishGalleryItem
gallery_onAfterPublishGalleryItem
gallery_onAfterUnpublishGalleryItem
They are frontend only. var1 is the gallery object. var2 is the source object (e.g. the user object of the user owning the gallery). var3 is the object it self (item or folder). var4 in the case of update triggers is the previous object (item or folder).