This Bolt extension add an array field type for content type.
- bolt 2.*
foos:
name: Foos
singular_name: Foo
fields:
...
bar:
type: array
children:
foo:
label: The awesome FOO
type: html
bar:
type: text
foobar:
type: image
...
{# Add this line before using the record object. #}
{% set record = array_content_parser(record) %}
<h3>{{ record.bar.bar }}</h3>
<div>{{ record.bar.foo }}</div>
<a href="{{ record.bar.foobar|image }}" title="{{ record.bar.foobar.title }}">
<img src="{{ record.bar.foobar|thumbnail(100,100) }}">
</a>
text
templateselect
textarea
select
checkbox
date
datetime
integer
float
file
(can select from server but cannot upload new file)image
(same hasfile
)html
(just normal textarea, do not display the editor)markdown
(same hashtml
)
imagelist
filelist
video
geolocation
- Use cascade array (currently, only work with 1 deep).
- Make customizable template (add possibilities and improve doc).
- Find a way to parse content record without using
array_content_parser
in template (help welcome on this one). - Translations?
- Make the list sortable.
- Multi selection for delete items.
Nothing report yet.
This library is release under MIT license.