Adding a toolbar button to export Events

  • eeversole
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 3 months ago #25713 by eeversole
Adding a toolbar button to export Events was created by eeversole
Hello,

Does anyone know how to edit the EB toolbar? I have looked in almost every file for it but cannot find it. I am wanting to add a new button to "Export Events" in which only event info will be exported, not the full registrants list.

Thanks

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #25720 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Adding a toolbar button to export Events
Hi

Do you want to export registrants from a chosen event only, is that correct ? If so, please go to Events Booking -> Registrants, choose the event you want to export registrants from event dropdown, then press export registrants button.

By doing that, only registrants from selected event will be exported.

Tuan

Please Log in or Create an account to join the conversation.

  • eeversole
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 3 months ago #25765 by eeversole
Replied by eeversole on topic Re: Adding a toolbar button to export Events
Hi Tuan,

Thank you for responding. I don't want to export any registrants, just the event information (i.e. event title, location, event date, etc.) I know this is not currently possible so I was going to try to add the functionality but I could not find where the toolbar is located.

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #25791 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Adding a toolbar button to export Events
Hi

You will need to add both the button to the toolbar and also the function to process the csv export for events. You can see the toolbar at administrator/components/com_eventbooking/views/events/tmpl/default.php. The code for export event can be added to administrator/components/com_eventbooking/controller.php (see the csv_export function which used to export registrants, you can write a new function called csv_export_events to export the events).

Hope this help. You do need to know programming in order to add this feature.

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc