We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20031
    • 19 Posts
    With the gallery component:
    http://rtfm.modx.com/display/addon/Gallery

    Would it be possible without modifying its core, to create an event that fires a plugin?

    Forexample: onGalleryFormSave

    inside the plugin i would need the $galleryAlbumId

    Thanks for any help in advance.
    Sammy
      • 33968
      • 863 Posts
      As a custom component I don't think you can use any of the System Events to trigger your plugin (like you could for saving a resource or chunk). You would probably have to find Gallery's 'create' and 'update' processors and add your code in there.

      But it depends what you want to achieve... want to share some details?
        • 20031
        • 19 Posts
        onGalleryFormSave

        I want to delete the custom full page cache pages for every resource that has the saved album selected.

        Not a difficult task, but would be nice without being able to modify the gallery component. [ed. note: MODXsammy last edited this post 15 years, 1 month ago.]