summaryrefslogtreecommitdiff
path: root/flowblocks
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--flowblocks/gallery-image.ini12
-rw-r--r--flowblocks/gallery.ini25
2 files changed, 37 insertions, 0 deletions
diff --git a/flowblocks/gallery-image.ini b/flowblocks/gallery-image.ini
new file mode 100644
index 0000000..289bc48
--- /dev/null
+++ b/flowblocks/gallery-image.ini
@@ -0,0 +1,12 @@
+[block]
+name = Gallery Image
+button_label = Image
+
+[fields.image]
+label = Image
+type = select
+source = record.attachments.images
+
+[fields.alt]
+label = Alternative text
+type = string
diff --git a/flowblocks/gallery.ini b/flowblocks/gallery.ini
new file mode 100644
index 0000000..9235ab3
--- /dev/null
+++ b/flowblocks/gallery.ini
@@ -0,0 +1,25 @@
+[block]
+name = Gallery
+button_label = Gallery
+
+[fields.images]
+label = Images
+type = flow
+flow_blocks = gallery-image
+
+[fields.breakout]
+label = Breakout
+type = select
+choices = none, xxs, xs, sm, md, lg, xl, xxl, full
+choice_labels = None, XXS, XS, SM, MD, LG, XL, XXL, Full
+default = none
+
+[fields.target_ratio]
+label = Preferred gallery ratio
+type = float
+default = 1.5
+
+[fields.gap]
+label = Gap
+type = float
+default = 0.5