Roych Posted May 16, 2018 Share Posted May 16, 2018 Hello, is it possible to change the color for each of the repeater in backend? I have two stacked repeaters and it is sometimes hard to find the right item to edit. So I would like to have the parent repeater in default green (Reno) and child repeater maybe some other color. Thank you R Link to comment Share on other sites More sharing options...
elabx Posted May 16, 2018 Share Posted May 16, 2018 Check this post: https://processwire.com/talk/topic/16932-adding-classes-to-repeater-items-for-custom-styling-in-admin/ 1 Link to comment Share on other sites More sharing options...
Robin S Posted May 17, 2018 Share Posted May 17, 2018 In AdminThemeUikit (might be dev branch only at the moment) you can choose from a few colour options for inputfields: But it would be more flexible to use your browser dev tools to inspect the markup in Page Edit, find what class is unique to the inputfield you want to change, then use AdminOnSteroids or AdminCustomFiles to add a custom CSS file to change the background colour. 3 Link to comment Share on other sites More sharing options...
Klenkes Posted May 17, 2018 Share Posted May 17, 2018 To give you another option: I almost always use Reno and add an admin stylesheet to it via a hook in init.php $this->addHookAfter('ProcessController::execute', function (HookEvent $event) { $this->config->styles->append("/site/templates/css/adminstyles.css"); }); and CSS to style stuff like Repeater: .Inputfields .Inputfield_auswahl404.InputfieldRepeater>.InputfieldContent .InputfieldRepeaterItem>.InputfieldHeader, .Inputfields .Inputfield_auswahl404.InputfieldRepeater>.InputfieldContent .InputfieldRepeaterItem>.InputfieldHeader span {background:#59261E;} .Inputfields .Inputfield_auswahl404.InputfieldRepeater>.InputfieldContent .InputfieldRepeaterItem>.InputfieldHeader:hover, .Inputfields .Inputfield_auswahl404.InputfieldRepeater>.InputfieldContent .InputfieldRepeaterItem>.InputfieldHeader:hover span {background:#F5B92C;} where .Inputfield_auswahl404 your fieldname is. Like Robin S said, inspect with your DEV tools.. 2 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