Adding new Style Customizer Values

Permalink
Loving the new 5.7 style customizer! I'd like to add a few more simple values to the image value, ability to set background position and other properties. What's the easiest way to do that? Any tutorials on this yet?

zanedev
 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi zanedev,

There isn't any documentation for this, but what you describe could be very useful.

If you are handy with code, then you will want to start here:
https://github.com/concrete5/concrete5/tree/develop/web/concrete/src...

This file has all the variable types that can be used:
https://github.com/concrete5/concrete5/tree/develop/web/concrete/src...

This is the file that controls the image type variables.
https://github.com/concrete5/concrete5/blob/develop/web/concrete/src...
zanedev replied on at Permalink Reply
zanedev
Thanks for the info, I'll take a stab at it. The only thing that wasn't immediately clear was how to tie the ui component (like color picker or text field) into the value type but I will dig in further and report back.