- Posts: 330
- Thank you received: 5
Customization of pdf export layout from backend
- OTWD
-
Topic Author
- Offline
- Platinum Member
-
Less
More
2 years 9 months ago #152542
by OTWD
Success consists of going from failure to failure without loss of enthusiasm.
Customization of pdf export layout from backend was created by OTWD
Hi
I wish to make some customizations of the pdf export that is produced when an admin selects some registrants and clicks the pdf export button.
Can you please let me know where these files are located and if its possible to create an override?
I am happy to share my code after i have completed the work
Thanks for any pointers.
I wish to make some customizations of the pdf export that is produced when an admin selects some registrants and clicks the pdf export button.
Can you please let me know where these files are located and if its possible to create an override?
I am happy to share my code after i have completed the work
Thanks for any pointers.
Success consists of going from failure to failure without loss of enthusiasm.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
2 years 9 months ago #152543
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Customization of pdf export layout from backend
Please Log in or Create an account to join the conversation.
- OTWD
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 330
- Thank you received: 5
2 years 9 months ago #152544
by OTWD
Success consists of going from failure to failure without loss of enthusiasm.
Replied by OTWD on topic Customization of pdf export layout from backend
Fantastic! Thank you Tuan
Success consists of going from failure to failure without loss of enthusiasm.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
2 years 9 months ago #152545
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Customization of pdf export layout from backend
You're welcome. Hope you will be able to customize it to meet your need
Tuan
Tuan
Please Log in or Create an account to join the conversation.
- OTWD
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 330
- Thank you received: 5
2 years 9 months ago - 2 years 9 months ago #152546
by OTWD
Success consists of going from failure to failure without loss of enthusiasm.
Replied by OTWD on topic Customization of pdf export layout from backend
Ok I'm nearly done and will post my code shortly.
I noticed com_eventbooking/tcpdf/config/tcpdf_config.php
* Page orientation (P=portrait, L=landscape).
*/
define ('PDF_PAGE_ORIENTATION', 'P');
I change it to 'L' but it doesnt have any effect on the pdf export. Is there another override to force the pdf export to be landscape?
Can the landscape format be included somehow in my
administrator/templates/isis/html/com_eventbooking/common/registrants_pdf.php file to prevent it from being overriden in future updates?
I noticed com_eventbooking/tcpdf/config/tcpdf_config.php
* Page orientation (P=portrait, L=landscape).
*/
define ('PDF_PAGE_ORIENTATION', 'P');
I change it to 'L' but it doesnt have any effect on the pdf export. Is there another override to force the pdf export to be landscape?
Can the landscape format be included somehow in my
administrator/templates/isis/html/com_eventbooking/common/registrants_pdf.php file to prevent it from being overriden in future updates?
Success consists of going from failure to failure without loss of enthusiasm.
Last edit: 2 years 9 months ago by OTWD.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
2 years 9 months ago #152547
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Customization of pdf export layout from backend
Don't modify core code like that. That is configurable. You can go to Events Booking -> Configuration, look at PDF settings tab, change Registrants Export Page Orientation config option from there
Tuan
Tuan
Please Log in or Create an account to join the conversation.
- OTWD
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 330
- Thank you received: 5
2 years 9 months ago #152548
by OTWD
Success consists of going from failure to failure without loss of enthusiasm.
Replied by OTWD on topic Customization of pdf export layout from backend
Thanks Tuan,
sorry i did check all the config options but could only find pdf landscape settings on Configuration > Certificate Settings and Ticket Settings, there is no option on Export Registrant Settings / PDF Settings?
I'm using EB3.15 - i should maybe upgrade?
sorry i did check all the config options but could only find pdf landscape settings on Configuration > Certificate Settings and Ticket Settings, there is no option on Export Registrant Settings / PDF Settings?
I'm using EB3.15 - i should maybe upgrade?
Success consists of going from failure to failure without loss of enthusiasm.
Please Log in or Create an account to join the conversation.
- OTWD
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 330
- Thank you received: 5
2 years 9 months ago #152549
by OTWD
Success consists of going from failure to failure without loss of enthusiasm.
Replied by OTWD on topic Customization of pdf export layout from backend
To answer my own question! upgrading did the trick!!
Success consists of going from failure to failure without loss of enthusiasm.
Please Log in or Create an account to join the conversation.
- OTWD
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 330
- Thank you received: 5
2 years 9 months ago #152550
by OTWD
Success consists of going from failure to failure without loss of enthusiasm.
Replied by OTWD on topic Customization of pdf export layout from backend
Here is a link to a custom pdf export thanks for the initial pointers Tuan
github.com/ontargetWeb/eb_customisations.../registrants_pdf.php
github.com/ontargetWeb/eb_customisations.../registrants_pdf.php
Success consists of going from failure to failure without loss of enthusiasm.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
2 years 9 months ago #152554
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Customization of pdf export layout from backend
OK. Thanks for sharing. The code could be improved a bit but guess that could be a good starting point
Tuan
Tuan
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.