Hi All,
I am Nandksihore and i have use sugarcrm 5.2.
I have need to change the color of the listview in if else condition so what can i do.plz reply.
Thanks
Hi All,
I am Nandksihore and i have use sugarcrm 5.2.
I have need to change the color of the listview in if else condition so what can i do.plz reply.
Thanks
You have a few options here, depending upon what you goals are:
- If you are just wanting to have alternating row colors, you can set this in the style.css file for the theme by setting the ".evenListRowS1 td" and ".oddListRowS1 td" rules appropriately.
- If there is just one field that needs to have the color changed, you could set the 'custom' attribute for the field in listviewdefs.php and have your logic in there using Smarty syntax.
- If the whole row is needing coloring, then you'll need to subclass the view.list.php for the module, overriding the listViewProcess() method to supply in a different ListView template to use, then copy the include/ListView/ListViewGeneric.tpl template to your module's tpls/ directory and make the changes there
All three options are upgrade safe. Hopefully this helps...
HI thanks for reply ,
but i have need to change color in the condition.plz give me a code to change color
HI jmertic
I need to change the row color, could you give me more detail information?
Thanks
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks