Go to the /administrator/components/com_content/forms/article.xml file
Go the field state
Replace the type list to type="groupedlist"
Add group like this :
<field
name="state"
type="groupedlist"
label="JSTATUS"
class="form-select-color-state"
default="1"
validate="options"
>
<group label="GRP1">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
</group>
<group label="GRP2">
<option value="2">JARCHIVED</option>
<option value="-2">JTRASHED</option>
</group>
</field>
Try to save a content
Save the content without error/warning
warning : Champ invalide: Statut
joomla 4.4.6
Labels |
Added:
No Code Attached Yet
|