down999 Posted April 28, 2015 Share Posted April 28, 2015 Hi, please, I can't figure out, how is possible to add to the fields_list the select element. $this->fields_list = array( 'id' => array( 'title' => $this->l('ID'), 'width' => 140, 'type' => 'text', ), 'name' => array( 'title' => $this->l('Name'), 'width' => 140, 'type' => 'text', ), ); $fields_form_1['form']['input'] = array(array( 'type' => 'select', 'name' => 'uniqueID', 'label' => $this->l('Test'), 'options' => array('query' => $query, 'id' => 'id', 'name' => 'label' ), ), Or another way, how to add to the fields_list the select element. :/ Thank you!! Link to comment Share on other sites More sharing options...
down999 Posted April 29, 2015 Author Share Posted April 29, 2015 Hmm.. nevermind I did my list page with the select element in the .tpl file. So in the main php file of the module: public function getContent() { $this->smarty->assign('DB_array', $DB_array); $this->smarty->assign('DB_select_array', $DB_select_array); $this->_html .= $this->display(__FILE__, 'views/templates/admin/back_office.tpl'); return $this->_html; } And in the "back_office.tpl" the classic foreach for the array $DB_array, which gave me the list, and next foreach for the array $DB_select_array, which gave me the select. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now