Adding another <option></option> to custom select field - Joomla! Forum - community, help and support


hi everyone

i'm developing custom component using content k2 component.

i've managed create custom select field gets populated options categories table (from k2_categories table) using getoptions() override of jformfieldlist class.

is there way add option such field?

i have tried adding <option value="0">joption_select_category</option> /fields xml file, option not added.

after search found myself:

code: select all

array_unshift($options, jhtml::_('select.option', '0', jtext::_('joption_select_category')));


would add option value 0 select list.





Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support