Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.3] Integer custom field to be numerical input instead of a drop-down #43697

Open
wants to merge 5 commits into
base: 5.3-dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Remove unused settings
  • Loading branch information
sakiss committed Jun 24, 2024
commit 58faf0d672ee62cd3bdf84a684a5b15421581dc9
23 changes: 0 additions & 23 deletions plugins/fields/integer/integer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,6 @@
<config>
<fields name="params">
<fieldset name="basic">
<field
name="multiple"
type="radio"
label="PLG_FIELDS_INTEGER_PARAMS_MULTIPLE_LABEL"
layout="joomla.form.field.radio.switcher"
default="0"
filter="integer"
>
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>

<field
name="form_layout"
type="list"
label="JLIB_FORM_FIELD_PARAM_LAYOUT_LABEL"
class="form-select"
default="joomla.form.field.list"
>
<option value="joomla.form.field.list">JLIB_FORM_FIELD_PARAM_LAYOUT_BASIC_SELECT</option>
<option value="joomla.form.field.list-fancy-select">JLIB_FORM_FIELD_PARAM_LAYOUT_FANCY_SELECT</option>
</field>

<field
name="first"
type="number"
Expand Down
27 changes: 0 additions & 27 deletions plugins/fields/integer/params/integer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,6 @@
<form>
<fields name="fieldparams">
<fieldset name="fieldparams">
<field
name="multiple"
type="list"
label="PLG_FIELDS_INTEGER_PARAMS_MULTIPLE_LABEL"
filter="integer"
validate="options"
>
<option value="">COM_FIELDS_FIELD_USE_GLOBAL</option>
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>

<field
name="first"
Expand All @@ -36,20 +25,4 @@
/>
</fieldset>
</fields>
<fields name="params">
<fieldset name="basic">
<fieldset name="formoptions">
<field
name="form_layout"
type="list"
label="JLIB_FORM_FIELD_PARAM_LAYOUT_LABEL"
class="form-select"
>
<option value="">COM_FIELDS_FIELD_USE_GLOBAL</option>
<option value="joomla.form.field.list">JLIB_FORM_FIELD_PARAM_LAYOUT_BASIC_SELECT</option>
<option value="joomla.form.field.list-fancy-select">JLIB_FORM_FIELD_PARAM_LAYOUT_FANCY_SELECT</option>
</field>
</fieldset>
</fieldset>
</fields>
</form>