Joomla Admin Input: <select size=100> :Get rid of size?! - Joomla! Forum - community, help and support


i building administration part of joomla component. have created custom form field admin view in admin/models/fields/mycustom.php. when joomla parses it, generates drop down list, except gives list size attribute default - becomes box of options scrollbar , not nice, neat drop down list) know how can stop doing this? [you can see mean difference looking @ 2 variations on input element here: http://jsfiddle.net/qdzqy/] appreciate if knows trick stop happening.

code: select all

class jformfieldmycustom extends jformfieldlist
{
   protected $type = 'mycustom';
   protected function getoptions()
   {
      $db = jfactory::getdbo();
      $query = $db->getquery(true);
      $query->select('id,title');
      $query->from('#__mycomponent_tableone');
      $db->setquery((string)$query);
      $messages = $db->loadobjectlist();
      $options = array();
      if ($messages)
      {
         foreach($messages $message)
         {
            $options[] = jhtml::_('select.option', $message->id, $message->title);
         }
      }
      $options = array_merge(parent::getoptions(), $options);
      return $options;
   }
}






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