Edit on GitHub
Jump to docs navigation

Field Types / Image field

Note: You are currently reading the documentation for Bolt 3.5. Looking for the documentation for Bolt 3.7 instead?

Simple image upload/select field.

Basic Configuration:

            type: image

Example usage in templates:

{{ record.values.cover|showimage() }}


{{ record.values.cover|thumbnail() }}


{{ record.values.cover|popup() }}

See Bolt Template tags for more info.

Note: Using record.values.cover will display the alt attribute on the img tag, while simply using record.cover will not.


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

  • extensions Allows you to restrict users to only be able to upload files with certain file extensions.
  • attrib Can be set to either of the following:
    • alt Show a text field for the alt parameter
    • title Show a text field for the title parameter
    • [title, alt] Show both fields
  • upload Allows you to upload files for this field into a specified directory so they remain grouped. This directory will be created in {%web%}/files/
            type: image
            attrib: [title, alt]
            extensions: [ gif, jpg, png ]
            upload: portfolio

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.

Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.