Customizing the PDF Export Template
With Entry Automation 2.0, you can now use custom template files for your PDF exports.
Template Path Filters
There’s three filters available for modifying the PDF template:
fg_entryautomation_pdf_template_header
This filter modifies the path to the PDF template header. Within this template file, you should place your opening <html> tag, stylesheet references, etc.fg_entryautomation_pdf_template_entry
This filter modifies the path to the PDF template entry. Within this template file, you add the contents of each entry using aforeach
loop.fg_entryautomation_pdf_template_footer
This filter modifies the path to the PDF template footer. Within this template file, you should place your closing </body> and </html> tags.
You can find the original template files in the includes/templates folder within the Entry Automation plugin files.
Available Variables
Within each template file, you have access to several global variables:
$entries array
The array of all the entries being exported.
$task Task
The current Entry Automation Task object.
$form array
The current Automation task’s form.