Skip to content

Commit e22b42d

Browse files
chmstrichard67
andauthored
[4.0] [UX] Use number field for num_columns in blog and featured layout (#33482)
* use dropdown list for num_colums * Use number field Co-authored-by: Richard Fath <[email protected]>
1 parent 7180483 commit e22b42d

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

administrator/components/com_content/config.xml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -744,16 +744,11 @@
744744

745745
<field
746746
name="num_columns"
747-
type="list"
747+
type="number"
748748
label="JGLOBAL_NUM_COLUMNS_LABEL"
749749
default="1"
750750
parentclass="stack span-1-inline"
751-
>
752-
<option value="1">J1</option>
753-
<option value="2">J2</option>
754-
<option value="3">J3</option>
755-
<option value="4">J4</option>
756-
</field>
751+
/>
757752

758753
<field
759754
name="multi_column_order"

components/com_content/tmpl/category/blog.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209

210210
<field
211211
name="num_columns"
212-
type="text"
212+
type="number"
213213
label="JGLOBAL_NUM_COLUMNS_LABEL"
214214
parentclass="stack span-1-inline"
215215
useglobal="true"

components/com_content/tmpl/featured/default.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767

6868
<field
6969
name="num_columns"
70-
type="text"
70+
type="number"
7171
label="JGLOBAL_NUM_COLUMNS_LABEL"
7272
parentclass="stack span-1-inline"
7373
useglobal="true"

0 commit comments

Comments
 (0)