Support is online

Trigger on after export? #7529

Open gnsbud opened this topic Saturday, 08 August 2015 · 5 replies
Author

Hi,

I know you added possibility to make own plugin and run it onafterimport (I remember some topic about it).
Is there any chance to have "on after export" trigger to run plugin after export is done?

Best regards,
Chris

Support

Hello Chris,

I can add a trigger but at which point? Should this be done before outputting the file or just before that? I guess it depends on what you are wanting to do with the trigger.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Hi,

I would like to do some processing of exported file (saved on server) and also do some db column update, so I guess best would be to have trigger after file output.

Best regards,
Chris

Support

Hey Chris,

If you want to do some processing of the exported file, you probably want the name of the file passed to the trigger. The only thing I need to think of is the plugin group it goes into.

Anything else you can think of you would want in the trigger?

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Hi,

would be great to have $params quite similar as they are in onImportComplete() function (to access operation, action etc.).

Best regards,
Chris

Support

Hello Chris,

Attached a patch file that adds the onExportComplete trigger with the same exact signature as the onImportComplete signature.

Let me know how it goes.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Log in to reply to this topic.