Beam

Generate CSV and XLS files in your templates

Installation #

To install Beam, follow these steps:

  1. Download & unzip the file and place the beam directory into your craft/plugins directory
  2. Install plugin in the Craft Control Panel under Settings > Plugins
  3. The plugin folder should be named beam for Craft to see it.

Beam works on Craft 2.4.x and higher.

Using Beam #

To generate a CSV file:

{% spaceless %}
{% set options = {
    header: ['Email', 'Name'],
    rows: [
        [ 'test@example.com', 'John Doe' ],
        [ 'another+test@example.com', 'Jane Doe' ],
        [ 'third+test@example.com', 'Trond Johansen' ],
    ]
} %}
{{ craft.beam.csv(options) }}
{% endspaceless %}

To generate a XLSX file:

{% spaceless %}
{% set options = {
    header: ['Email', 'Name'],
    rows: [
        [ 'test@example.com', 'John Doe' ],
        [ 'another+test@example.com', 'Jane Doe' ],
        [ 'third+test@example.com', 'Trond Johansen' ],
    ]
} %}
{{ craft.beam.xlsx(options) }}
{% endspaceless %}

Releases

1.0.1 — 2018-04-17 Download
  • Improved: Make it possible to override default column data type
1.0.0 — 2017-05-29 Download
  • Added: Initial release

Currently available for Craft consulting and custom plugin development

Contact me