In the column of a listbox field in a CPM table in the manager I want to highlight cells differently, depending on their values (different text colors or background colors). Is there a way to do it? Can I use the renderChunk template? How is it used?
Thank you, Bruno and Susan!
Indeed I'd like to avoid inline styling. Is /manager/templates/default/css/index.css the right file to put the classes in?
Edit:
Certainly not, since it would be overwritten with a MODX upgrade.
[ed. note: ottogal last edited this post 11 years, 8 months ago.]
You would probably be best off examining the existing classes used in the Manager, and use those classes. Find something that looks like what you want, use Firebug or something similar to locate the exact element and see what class is used for its styling.
You can make a copy of the default theme folder, rename it, make your changes, then in the System Settings select your "new" manager theme. You need to refresh the page before the changes to the index.css file will show up.
I already had a look with Firebug into the index.css; this clumsy jungle of style definitions is incredible... For my aim I'll go back to the inline styles - works fine.
Thank you, Susan, for your advice, anyway.