BoltCM

Sophisticated, Lightweight and Simple

Jump to docs navigation
Edit on GitHub

Field types » Image field

Simple image upload/select field.

Basic Configuration:

        cover:
            type: image

Example usage in templates:

{{ record.cover|showimage() }}

or

{{ record.cover|thumbnail() }}

or

{{ record.cover|popup() }}

See Bolt Template tags for more info.

Options:

The field has a few options to change the appearance and functionality of the field.

        cover:
            type: image
            attrib: [title, alt]
            extensions: [ gif, jpg, png ]

You can call these in your templates by using {{ record.values.image.title }} or {{ record.values.image.alt }} and they will also be automatically used by bolt's image functions.


Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on IRC.
Spotted a typo, or have something to add? Edit this page on GitHub.