Joomla Change Recommended Default Field: Yes
the Joomla Add / Edit article has a Recommended field which is selected as None by default . I want to select Yes by default, so in
Joomla \ admin \ component \ com_content \ model \ form \ article.xml
I change the code according to my requirement
<field name="featured" type="list"
label="JFEATURED"
description="COM_CONTENT_FIELD_FEATURED_DESC"
default="0"
>
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>
to
<field name="featured" type="list"
label="JFEATURED"
description="COM_CONTENT_FIELD_FEATURED_DESC"
default="1"
>
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>
but it doesn't select Yes by default, but just change the JYES text to JNO , although it changes but doesn't set featured in the db
+3
source to share