fix: change back to columns
This commit is contained in:
parent
1cd8e30a16
commit
c552021c35
3 changed files with 3 additions and 4 deletions
|
|
@ -11,8 +11,7 @@ fields:
|
||||||
allowed: [jpg, jpeg, png, gif, webp]
|
allowed: [jpg, jpeg, png, gif, webp]
|
||||||
multiple: true
|
multiple: true
|
||||||
useExistingField: true
|
useExistingField: true
|
||||||
- identifier: imagecols
|
- identifier: columns
|
||||||
useExistingField: true
|
|
||||||
type: Select
|
type: Select
|
||||||
renderType: selectSingle
|
renderType: selectSingle
|
||||||
default: 1
|
default: 1
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
</f:for>
|
</f:for>
|
||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
<f:switch expression="{data.imagecols}">
|
<f:switch expression="{data.columns}">
|
||||||
<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>
|
||||||
|
|
|
||||||
|
|
@ -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.imagecols}">
|
<f:switch expression="{data.columns}">
|
||||||
<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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue