New answers tagged

1

You haven't set the path's correctly for the HTMLHelper calls. You're using relative => true, which means the media and js/css are not required in the path. So you'll want to use: // JS HTMLHelper::_('script', 'mod_joomla4_module_custom_form_fields/mod_joomla4_module_custom_form_fields_backend.js', ['version' => 'auto', 'relative' => true]); // ...


1

This is what I finally did. If someone knows a cleaner solution please let me know. defined('JPATH_BASE') or die; use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; use Joomla\CMS\Form\FormHelper; FormHelper::loadFieldClass('list'); class JFormFieldObjecttypes extends JFormFieldList { protected $type = 'Objecttypes'; public function getOptions(...


Top 50 recent answers are included