Customization of pdf export layout from backend

  • OTWD
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
2 years 9 months ago #152542 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.

Success consists of going from failure to failure without loss of enthusiasm.

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

More
2 years 9 months ago #152543 by Tuan Pham Ngoc

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

  • OTWD
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
2 years 9 months ago #152544 by OTWD
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.

More
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

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

  • OTWD
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
2 years 9 months ago - 2 years 9 months ago #152546 by OTWD
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?

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.

More
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

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

  • OTWD
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
2 years 9 months ago #152548 by OTWD
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?

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
  • Platinum Member
More
2 years 9 months ago #152549 by OTWD
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
  • Platinum Member
More
2 years 9 months ago #152550 by OTWD
Here is a link to a custom pdf export thanks for the initial pointers Tuan
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.

More
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

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

Moderators: Tuan Pham Ngoc