Categories
CMS Joomla Mastering Development

custom form list field add disabled options

i have a working list based on an sql query – now i would like to add some spacers (not selectable items) – when doing this manually in xml you can add the disabled attr to that item but how can i do that when filling the list like so: $cities = array( array(‘value’ => […]

Categories
CMS Joomla Mastering Development

Insert custom field into modules .xml file

I have currently created a Joomla Module, and i would like to make it a bit more advanced now. I have created a Custom field, and i have tried to add it to the mod_NAMEOFMODULE.xml file. To use it when configuring the module. Here is the code for the custom field: ` use Joomla\CMS\Form\FormHelper; FormHelper::loadFieldClass(‘list’); […]