Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time

Image Thumbnails

To stay organized, the ToolboxBundle provides a dedicated configuration and a simple helper for image thumbnails. Every required thumbnail size is defined in the toolbox configuration. So it's easy for you to simplify or change the Image Thumbnail reference.

Although this is just an optional feature, it makes sense to use the view helper in your project and custom bricks.


        # get merged or overrides the toolbox defaults
        gallery_element: 'myOverriddenGalleryThumbnailSize'
        my_thumbnail_size: 'myThumbnailSize'

View Helper:

{{ asset.getThumbnail(toolbox_get_image_thumbnail('my_thumbnail_size')) }}