I’ve built a theme with Fred and ClientConfig. It’s working fine for most part, however, I run into an issue when making changes the the ClientConfig settings and then run an update of the theme package. Step by step:
- I made some changes in ClientConfig (renamed and created some new settings) on site A.
- I created a new build of my Fred theme on site A.
- I uploaded the new theme to site B and updated.
- If I now go into the ClientConfig settings on site B I have both the new and old settings and things are complete mess with loads of headings at the top, dropdowns at the bottoms etc.
Can this be fixed by changing the Extract Template settings somehow? This is what I’ve currently got:
{
"packages": [
{
"name": "clientconfig",
"class": "ClientConfig"
}
],
"vehicles": [
{
"object": {
"class": "cgGroup",
"graph": {
"Settings": []
}
},
"attributes": {
"preserve_keys": false,
"update_object": true,
"unique_key": "label",
"related_objects": true,
"related_object_attributes": {
"Settings": {
"preserve_keys": false,
"update_object": true,
"unique_key": [
"key",
"group"
]
}
}
}
}
]
}
How can I change it so that both:
a) the values of non changed keys are preserved;
b) renamed, deleted and new keys are properly updated?