Configuration

Create an events.php file under your /config directory with the following options available to you. You can also use multi-environment options to change these per environment.

<?php

return [
    '*' => [
        'pluginName' => 'Events',
        'ticketSKULength' => 10,
        'ticketPdfPath' => 'shop/_pdf/tickets',
        'ticketPdfFilenameFormat' => 'Tickets-{number}',
        'checkinTemplate' => 'events/check-in',
        
        'pdfAllowRemoteImages' => false,
        'pdfPaperSize' => 'letter',
        'pdfPaperOrientation' => 'portrait',
    ]
];

Configuration options #

  • pluginName - Change the plugin name.
  • ticketSKULength - Purchased tickets have a unique, auto-generated SKU. Use this value to set the desired length.
  • ticketPdfPath - Set the path to your PDF.
  • ticketPdfFilenameFormat - Set the defaulf PDF filename format.
  • checkinTemplate - Set a template to be shown when checking into an event. See events/templates/check-in.html for an example.
  • pdfAllowRemoteImages - Whether to allow remote images in the PDF.
  • pdfPaperSize - Sets the paper size for the PDF.
  • pdfPaperOrientation - Sets the paper orientation for the PDF.

Control Panel #

You can also manage configuration settings through the Control Panel by visiting Settings → Events.

Get started with Events

Available for Craft 3. Get it from the plugin store.