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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Review export lifecycle for plugin injection #702
Comments
Are you sure you need a EventSubscriber? |
Now the export types are hardcoded in ExportQuery.php, I've added the ability to load the export ids dynamically. |
With this commits I've created a fully functional export plugin. |
Nice job! Which format do you export? |
It's another html export but in a custom format for an our customer |
I wonder if we should rework the export to allow templates (like invoice) instead of doing it this way. Might be a more common request. |
I don鈥檛 think that the export can be done by template only. In my case I have done all the timesheet elaboration in php and it鈥檚 not possible to do that in template/javascript. Plugin integration is essential, templating can be a secondary solution, because if you have to elaborate timesheet data or add something like translation, with template only way it can鈥檛 be done. |
Long term plan for the export: there should be some options (probably shown in a modal after clicking one of the buttons) that will change how/which data is passed to the renderer... but this can probably never satisfy everyone. But good argument why a template won't work in this case. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. If you use Kimai on a daily basis, please consider donating to support further development of Kimai. |
Add ExportSubscriber to dispatch event for plugin based export module.
PR will follow.
Help needed 馃槃
The text was updated successfully, but these errors were encountered: