This seems to be a problem that occurs when trying to loop over an imagelist. The list is returned as an array of objects like so when i print()
str(1569) "[{"filename":"2013-01/Cards_01.jpg","title":"2013-01/Cards_01.jpg","id":0,"order":1},{"filename":"2013-01/Cards_05.jpg","title":"2013-01/Cards_05.jpg","id":1,"order":1},{"filename":"2013-01/Cards_07 (1).jpg","title":"2013-01/Cards_07 (1).jpg","id":2,"order":1},{"filename":"2013-01/Cards_13 (1).jpg","title":"2013-01/Cards_13 (1).jpg","id":3,"order":1},{"filename":"2013-01/Cards_14 (1).jpg","title":"2013-01/Cards_14 (1).jpg","id":4,"order":1},{"filename":"2013-01/Cards_15 (1).jpg","title":"2013-01/Cards_15 (1).jpg","id":5,"order":1},{"filename":"2013-01/Cards_16 (1).jpg","title":"2013-01/Cards_16 (1).jpg","id":6,"order":1},{"filename":"2013-01/Cards_03.jpg","title":"2013-01/Cards_03.jpg","id":7,"order":1},{"filename":"2013-01/Cards_02.jpg","title":"2013-01/Cards_02.jpg","id":8,"order":1},{"filename":"2013-01/Cards_04.jpg","title":"2013-01/Cards_04.jpg","id":9,"order":1},{"filename":"2013-01/Cards_06.jpg","title":"2013-01/Cards_06.jpg","id":10,"order":1},{"filename":"2013-01/Cards_09.jpg","title":"2013-01/Cards_09.jpg","id":11,"order":1},{"filename":"2013-01/Cards_11.jpg","title":"2013-01/Cards_11.jpg","id":12,"order":1},{"filename":"2013-01/Cards_10.jpg","title":"2013-01/Cards_10.jpg","id":13,"order":1},{"filename":"2013-01/Cards_12.jpg","title":"2013-01/Cards_12.jpg","id":14,"order":1},{"filename":"2013-01/Cards_08.jpg","title":"2013-01/Cards_08.jpg","id":15,"order":1},{"filename":"2013-01/Cards_18.jpg","title":"2013-01/Cards_18.jpg","id":16,"order":1},{"filename":"2013-01/Cards_19 (4).jpg","title":"2013-01/Cards_19 (4).jpg","id":17,"order":1}]"
# This file defines the contenttypes on the website. See the documentation for
# details:
http://docs.bolt.cm/content#defining-contenttypespages:
name: Pages
singular_name: Page
fields:
title:
type: text
class: large
slug:
type: slug
uses: title
image:
type: image
body:
type: html
height: 300px
template:
type: templateselect
filter: '*.twig'
taxonomy: [ chapters ]
sort: title
recordsperpage: 100
works:
name: Works
singular_name: Work
fields:
title:
type: text
class: large
slug:
type: slug
uses: title
image:
type: image
pesos:
type: imagelist
html:
type: html
height: 150px
video:
type: video
file:
type: file
template:
type: templateselect
filter: '*.twig'
taxonomy: [ categories, tags ]
sort: title
recordsperpage: 100
# possible field types:
# text - varchar(256) - input type text.
# integer - integer - Input field for integer numbers.
# float - double - Input field for floating numbers, stored as 'Double'.
# geolocation - text (65kb) - Input field for geolocation. Enter an address, and the location is geocoded to latitude/longitude coordinates
# imagelist - text (65kb) - Input type for imagelists. Add multiple images with a description. Useful for image sliders, galleries, etcetera.
# image - varchar(256) - image select/upload widget, stored as filename.
# file - varchar(256) - file select/upload widget, stored as filename.
# video - varchar(256) - Video embed widget, stored as filename.
# html - text (65kb) - wysiwyg element.
# textarea - varchar(32768) - Simple, plain < textarea > field.
# datetime - datetime - date and time selector widget.
# date - datetime - date selector widget.
# templateselect - varchar(256) - select with template filenames
# number (deprecated) - input type decimal(18,9), useful for storing number that need to be sortable