Skip to documentation content

Gallery Item

Gallery Item

The gallery item object and its properties.

{{ gallery_item }}

Properties
Properties of {{ gallery_item }} objects
Name Type Description
object_type string Will always be gallery_item
is_valid boolean True if this references a published gallery_item
guid string The unique identifier for this gallery_item
value string Contains the same value as guid
gallery_guid string The unique identifier of the related gallery
gallery {{ gallery }} Reference to the related gallery object
order integer Display order of this item relative to its siblings
image_guid string The unique identifier of the related image
image {{ image }} Reference to the related image object
href {{ url }} Destination URL to navigate to when clicked
caption {{ text }} Short text shown as a caption
alt {{ text }} Alternative text for accessibility and when the image cannot be displayed
name {{ text }} The name of the gallery item
title {{ text }} The title of the gallery item
class {{ text }} Additional CSS class name(s) to be applied to the gallery item
content_html {{ html }} Additional HTML content to be displayed along with this gallery item
field_id string The identifier for this field
label string The label for this field
output string The default output that the gallery_item produces when output directly to the template. The default output may change at any time. Template developers should avoid using this and should handle the output of gallery items themselves