- Posts: 76
- Thank you received: 2
Adding extra export function
- Kathy
- Topic Author
- Offline
- Senior Member
-
Less
More
9 years 6 months ago #71745
by Kathy
Adding extra export function was created by Kathy
I have a heavily modified csv export function that I'd like to use some of the time. In my ideal world, I would create another button on the registrants management page that links to my alternate function. Any guidance as to how to go about setting this up?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 6 months ago #71757
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Adding extra export function
Hi Kathy
You need to have Joomla programming skill to do that :
1. Edit the file administrator/components/com_eventbooking/view/registrants/tmpl/default.php to add the button
2. Edit the file administrator/components/com_eventbooking/controller/controller.php, add a new method to handle your custom export. I think you should copy the original csv_export method, then rename it and customize it to meet your need
Please try that and let me know the result
Tuan
You need to have Joomla programming skill to do that :
1. Edit the file administrator/components/com_eventbooking/view/registrants/tmpl/default.php to add the button
2. Edit the file administrator/components/com_eventbooking/controller/controller.php, add a new method to handle your custom export. I think you should copy the original csv_export method, then rename it and customize it to meet your need
Please try that and let me know the result
Tuan
Please Log in or Create an account to join the conversation.
- Kathy
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 76
- Thank you received: 2
9 years 6 months ago #72037
by Kathy
Replied by Kathy on topic Adding extra export function
The button doesn't seem to come from the registrants file. It starts with the table itself.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 6 months ago #72092
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Adding extra export function
Hi Kathy
I don't understand your last post. Could you please explain more details about the difficulty you are having ?
Tuan
I don't understand your last post. Could you please explain more details about the difficulty you are having ?
Tuan
Please Log in or Create an account to join the conversation.
- Kathy
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 76
- Thank you received: 2
9 years 5 months ago #72272
by Kathy
Replied by Kathy on topic Adding extra export function
Tuan,
I just mean that administrator/components/com_eventbooking/view/registrants/tmpl/default.php was not the location to edit to add the button.
For anyone else looking to do something similar, the file that I ended up editing was administrator/components/com_eventbooking/view/registrants/html.php, in the function addToolbar().
I did edit administrator/components/com_eventbooking/controller/controller.php as Tuan suggested above. However, most of my modifications were done in components/com_evenbooking/helper/data.php, in the function csvExport. The controller file gets the data from the database, but the csv is created/written in the helper file.
I just mean that administrator/components/com_eventbooking/view/registrants/tmpl/default.php was not the location to edit to add the button.
For anyone else looking to do something similar, the file that I ended up editing was administrator/components/com_eventbooking/view/registrants/html.php, in the function addToolbar().
I did edit administrator/components/com_eventbooking/controller/controller.php as Tuan suggested above. However, most of my modifications were done in components/com_evenbooking/helper/data.php, in the function csvExport. The controller file gets the data from the database, but the csv is created/written in the helper file.
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.