Jump to content

how to define a color in a render_list / helperlist


manudas

Recommended Posts

Hi, it´s easy to define any kind field in a helperlist this way in an admin controller or a helper list:

 

$this->fields_list = array(
                                      'ID_MODIFIER' => array(
                                                                    'title' => $this->l('ID'),
                                                                    'align' => 'center',
                                                                    'width' => 20
                                                                  )
                                      );
 
But... how can I define a field that cointains a background color like the product attribute color ?
And a select/option drowpdown ?
 
Thank you!
Link to comment
Share on other sites

Solved:

 

adding this ittem to my field_list array:

 

(is important that the associative index of array ('color') to be of the same case (lowercase))

 

'color' => array(
'title' => $this->l('Color'),
'width' => 40,
'filter_key' => 'DATABASE_TABLE_COLOR_ATRIBUTTE'),
Edited by manudas (see edit history)
Link to comment
Share on other sites

  • 5 years later...
On 6/10/2014 at 4:10 AM, manudas said:

Resuelto:

 

agregando este artículo a mi matriz field_list:

 

(es importante que el índice asociativo de la matriz ('color') sea del mismo caso (minúscula ))

 

'color' => matriz (
'title' => $ this-> l ('Color'),
'ancho' => 40,
'filter_key' => 'DATABASE_TABLE_COLOR_ATRIBUTTE') ,

HOW DO I COLOR MY CARRIER?

TRANSPORTISTA.PNG

Edited by Daniel_96 (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...