Entry Automation Entry Automation

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:

  1. 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.

  2. 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 a foreach loop.

  3. 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: