darkhoros VIP
Total posts: 152
10 Dec 2014 16:46

Hi, I need to customize the filter module so I need to use the Field Class and label class for each field but fields in module filter are being rendered without these classes.

Please advice on how to use them. Thank you.

Last Modified: 11 Dec 2014


darkhoros VIP
Total posts: 152
10 Dec 2014 19:52

Hi, Ok sorted out, I needed to edit the module template so I copied modules/mod_cobalt_filters/tmpl/default.php to a new file then edit this file

then use this line to print out the field class you entered in the back end

params->get('core.field_class'));?>

Hope some 1 find it useful.

Thank you.


pepperstreet VIP
Total posts: 3,837
10 Dec 2014 20:20

darkhoros Hope some 1 find it useful.

Yes. Thanks for the headsup and sharing example code!

(Thought it was already the default behavior and output)


Sergey
Total posts: 13,748
11 Dec 2014 02:26

headsup: You could also copy this file in the same folder with different name and simply select this file in module parameters.

Powered by Cobalt