โดย Raja Pdl » 26/12/2024 11:17 pm
In Joomla 5, within a custom component, a type list (select box in an XML file) is not displaying according to Joomla 5 standards. Instead, it appears as a simple HTML select box. How can I fix this to make it display as a Joomla 5 standards select box?
โค้ด: เลือกทั้งหมด
<field
name="published"
type="list"
label="JSTATUS"
default="1">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
</field>
Actual result

- actual res.PNG (1.42 KiB) Viewed 2327 times
Expected Result

- selct expected.PNG (1.35 KiB) Viewed 2327 times
In Joomla 5, within a custom component, a type list (select box in an XML file) is not displaying according to Joomla 5 standards. Instead, it appears as a simple HTML select box. How can I fix this to make it display as a Joomla 5 standards select box?
[code]<field
name="published"
type="list"
label="JSTATUS"
default="1">
<option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option>
</field>[/code]
Actual result
[attachment=1]actual res.PNG[/attachment]
Expected Result
[attachment=0]selct expected.PNG[/attachment]