Boxes Field

Boxes Field

Form Widget

boxes - renders a box editor for building visual pages and works like a frontend page builder.

This field is introduced after installing the Boxes plugin (opens new window) on the October CMS marketplace. Once licensed, you may install it with the following command.

php artisan plugin:install OFFLINE.Boxes

To display the Boxes Editor in a Tailor backend form, define a form field like this:

fields:
    boxes_content:
        label: Boxes Content
        span: adaptive  # This makes sure the Boxes Editor looks good in Tailor.
        type: boxes     # This loads the Boxes Editor.

In your frontend, you can then use the render method on your field to get the rendered HTML content:

[section yourSectionVar]
handle = "Your\Handle"
entrySlug = "{{ :slug }}"
{{ yourSectionVar.boxes_content.render|raw }}

# See Also

On This Page