Campsite: Images
Images
template block statement: {{ list_images }}
Parameters that can be used in {{ list_images }} statement:
- length="<integer_value>": <integer_value> specifies the list length and forces the list to have at mostlist_length items. If the list contains more items than list_length items the intervals of elements to be displayed can be switched using has_previous_elements/has_next_elements from the current_list object.
- columns="<integer_value>":<integer_value> specifies the list columns number and sets an environment variable. This is incremented as if the items would be placed in a table cell. The counting starts from one and the variable is incremented for every new element. When it reaches the maximum value it is reset to one. This is very useful in building tables of data. For details see current_list.
- order="<order_field> <direction>" where <direction> may be "asc" (ascending) or "desc" (descending) and the <order_field> can be one of:
- default: order by image identifier
- byDescription: order by the description field
- byPhotographer: order by the photographer field
- byDate: order by image date field
- byLastUpdate: order by the time the image was updated
- description="<value>": select images whose description matches exactly the given value
- photographer="<value>": select images whose photographer matches exactly the given value
- place="<value>": select images whose place matches exactly the given value
- caption="<value>": select images whose caption matches exactly the given value
- date="<value>": select images whose date matches exactly the given value
- type="<value>": select images whose type matches exactly the given value; valid type values are: png, jpeg, gif etc.
- description_like="<value>": select images whose description matches partially the given value
- photographer_like="<value>": select images whose photographer matches partially the given value
- place_like="<value>": select images whose place matches partially the given value
- caption_like="<value>": select images whose caption matches partially the given value
- start_date="<value>": select images whose date matches or is greater than the given value
- end_date="<value>": select images whose date matches or is smaller than the given value
- search="<value>": select images whose description, photographer, place and caption matches partially the given value
- local="true" | "false": select only local images if true, remote images if false
Attributes for the image object
The image template object (see http://en.flossmanuals.net/Campsite/TemplateObjects - Image) has the following new attributes:
- last_update: displays the time the image was updated
- caption: displays the image caption field
- is_local: 1 if the image was stored locally, 0 if external
- type: the subtype from the mimetype field; e.g.: png, jpeg, gif etc.
EDIT