Closed ChipsVII closed 1 year ago
How did you define in the CSS Groups widget that it is an opt group?
Sorry for the late answer, but you reply made me realize the backend was indeed not ready for managing optgroup.
I did create a GoupKeyValueWizard
widget (aka a KeyValueWizard
with a field dedicated to the group) and used it on the cssClasses
field, modified a bit the prepareData
function in tl_style_manager
and added the saveData
function as the save_callback
for the cssClasses
field.
You can find details here : https://github.com/Web-Ex-Machina/contao-component-style-manager/pull/2/files
Feel free to repoen it when you have a new approach
Hello,
I am unable to create
select
s withoptgroup
. And I think it's impossible to, according to theComponentStyleSelect
widget's current code. I managed to make it work with those slight modifications (starting line 140) :This code has been manually tested on my simple case, I don't know if it is "robust" enough to handle other cases.