Color Picker add on with CMSB v3+

3 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: March 1, 2016   (RSS)

By garyhoffmann - February 29, 2016

I'm using the Color Picker addon.  This totally does not work with V3+.  I'm trying to understand the adminUI_args array.  Is there documentation on this array so I can see what's in it?  I can resort to var_dumps and such, but it would be nice if it were documented somewhere.

Can someone please point me to the documentation of this array?

Thanks,

Gary.

By Chris - March 1, 2016

Hi garyhoffmann,

I'm assuming you found the 'adminUI_args' plugin filter and were attempting to add html to $adminUI['CONTENT']? I thought your approach should have worked, so I tested it and found a small bug which was preventing plugins from being able to modify 'CONTENT' (and only 'CONTENT'). I've patched this bug and the fix should be in the release of CMS Builder after the next one (we're in the middle of releasing and I don't think I can get my patch in to 3.03.)

There's not really much documentation for the adminUI_args array yet, as it's brand new, however there are some examples of its use above the adminUI() function in admin_functions.php -- and you may find it helpful to search the codebase for calls to adminUI() to see how it's used. I hope this helps!

That said, "admin_header" (or "admin_footer") is probably a much better (simpler) hook to use in this case, as you're now doing.

Glad to hear you were able to get it working!

All the best,
Chris