Installation #
To install Beam, follow these steps:
- Download & unzip the file and place the
beam
directory into yourcraft/plugins
directory - Install plugin in the Craft Control Panel under Settings > Plugins
- 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: [
[ '[email protected]', 'John Doe' ],
[ '[email protected]', 'Jane Doe' ],
[ '[email protected]', 'Trond Johansen' ],
]
} %}
{{ craft.beam.csv(options) }}
{% endspaceless %}
To generate a XLSX file:
{% spaceless %}
{% set options = {
header: ['Email', 'Name'],
rows: [
[ '[email protected]', 'John Doe' ],
[ '[email protected]', 'Jane Doe' ],
[ '[email protected]', 'Trond Johansen' ],
]
} %}
{{ craft.beam.xlsx(options) }}
{% endspaceless %}
Releases
- Improved: Make it possible to override default column data type
- Added: Initial release
Currently available for Craft consulting and custom plugin development
Contact me