Compare commits
2 commits
37300492dc
...
1cd8e30a16
| Author | SHA1 | Date | |
|---|---|---|---|
| 1cd8e30a16 | |||
| 6c602a4838 |
3 changed files with 7 additions and 9 deletions
|
|
@ -11,7 +11,8 @@ fields:
|
||||||
allowed: [jpg, jpeg, png, gif, webp]
|
allowed: [jpg, jpeg, png, gif, webp]
|
||||||
multiple: true
|
multiple: true
|
||||||
useExistingField: true
|
useExistingField: true
|
||||||
- identifier: columns
|
- identifier: imagecols
|
||||||
|
useExistingField: true
|
||||||
type: Select
|
type: Select
|
||||||
renderType: selectSingle
|
renderType: selectSingle
|
||||||
default: 1
|
default: 1
|
||||||
|
|
@ -23,4 +24,4 @@ fields:
|
||||||
- label: LLL:EXT:base/ContentBlocks/ContentElements/imagegallery/language/labels.xlf:columns.3
|
- label: LLL:EXT:base/ContentBlocks/ContentElements/imagegallery/language/labels.xlf:columns.3
|
||||||
value: 3
|
value: 3
|
||||||
- label: LLL:EXT:base/ContentBlocks/ContentElements/imagegallery/language/labels.xlf:columns.5
|
- label: LLL:EXT:base/ContentBlocks/ContentElements/imagegallery/language/labels.xlf:columns.5
|
||||||
value: 5
|
value: 5
|
||||||
|
|
|
||||||
|
|
@ -23,11 +23,8 @@
|
||||||
</f:if>
|
</f:if>
|
||||||
</f:for>
|
</f:for>
|
||||||
</div>
|
</div>
|
||||||
<f:if condition="{data.image -> f:count()} > 3">
|
|
||||||
<p>+ {f:math.subtract(a: '{data.image -> f:count()}', b: '3')} more images</p>
|
|
||||||
</f:if>
|
|
||||||
<p>
|
<p>
|
||||||
<f:switch expression="{data.columns}">
|
<f:switch expression="{data.imagecols}">
|
||||||
<f:case value="2">2 Columns</f:case>
|
<f:case value="2">2 Columns</f:case>
|
||||||
<f:case value="3">3 Columns</f:case>
|
<f:case value="3">3 Columns</f:case>
|
||||||
<f:case value="5">5 Columns</f:case>
|
<f:case value="5">5 Columns</f:case>
|
||||||
|
|
@ -36,4 +33,4 @@
|
||||||
</p>
|
</p>
|
||||||
</f:if>
|
</f:if>
|
||||||
</f:section>
|
</f:section>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
<f:if condition="{data.image}">
|
<f:if condition="{data.image}">
|
||||||
<f:variable name="columnClass">
|
<f:variable name="columnClass">
|
||||||
<f:switch expression="{data.columns}">
|
<f:switch expression="{data.imagecols}">
|
||||||
<f:case value="2">md:grid-cols-2</f:case>
|
<f:case value="2">md:grid-cols-2</f:case>
|
||||||
<f:case value="3">md:grid-cols-3</f:case>
|
<f:case value="3">md:grid-cols-3</f:case>
|
||||||
<f:case value="5">md:grid-cols-5</f:case>
|
<f:case value="5">md:grid-cols-5</f:case>
|
||||||
|
|
@ -60,4 +60,4 @@
|
||||||
</f:for>
|
</f:for>
|
||||||
</div>
|
</div>
|
||||||
</f:if>
|
</f:if>
|
||||||
</f:section>
|
</f:section>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue