Field Types / Imagelist field
Note: You are currently reading the documentation for Bolt 5.0. Looking for the documentation for Bolt 5.2 instead?
A simple list field type to upload/select images. Also contains a title text field for each image.
Basic Configuration:¶
        gallery:
            type: imagelist
Example usage in templates:¶
This example will output a magnific popup gallery with thumbnails of all the images:
{% for image in record.gallery %}
    {{ image|popup() }}
{% endfor %}
Options:¶
The field has one option to change the functionality of the field:
extensionsAllows you to restrict users to only be able to upload files with certain file extensionsuploadAllows you to upload files for this field into a specified directory so they remain grouped. See also theupload_locationsetting.extra(Since Bolt 5.2) Allows you to set additional fields similar toalt. You can specify alabeland aplaceholderfor each.
        gallery:
            type: imagelist
            extensions: [ gif, jpg, png ]
            upload: portfolio
            extra:
              title:
                label: Title
                placeholder: This is the placeholder for the title
              caption:
                label: Caption
                
                
                    
                        
                            
                        
                        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.
                
            Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.