Closed Timo-Breumelhof closed 1 year ago
I'm upgrading a client to Open Content 5 and apart from the things mentioned on here: https://opencontent.readme.io/v5.0/docs/migrating-existing-templates-to-builder-v2 I noticed something else. For most nested templates the value in the options file are ignored (for templates created in OC 4)
Here's the options file:
{ "fields": { "ModuleTitle": { "type":"text" }, "Items": { "fields": { "item": { "fields": { "Title": { "type":"text" }, "Text" : { "type":"ckeditor", "ckeditor":{ "toolbar": [ { "name": "text", "items": ["Bold" , "Italic", "Underline" , "RemoveFormat"] }, { "name": "style", "items": ["Format"] }, { "name": "layout", "items": ["Table" , "NumberedList", "BulletedList", "Outdent", "Indent"] }, { "name": "link", "items": ["Link" , "Unlink"] }, { "name": "Img", "items": ["EasyImageUpload"] }, { "name": "Source", "items": ["ShowBlocks", "Maximize", "Source"] } ] } } } } } } } }
This works in OC4 but not in OC 5. I think this is an OC 3 type options file structure right?
If I change this:
"Items": { "fields": { "item": { "fields": {
to:
"Items": { "items": { "fields": {
(and remove a } at the bottom
The options file does work correctly
added changes to make to: https://opencontent.readme.io/v5.0/docs/migrating-existing-templates-to-builder-v2
I'm upgrading a client to Open Content 5 and apart from the things mentioned on here: https://opencontent.readme.io/v5.0/docs/migrating-existing-templates-to-builder-v2 I noticed something else. For most nested templates the value in the options file are ignored (for templates created in OC 4)
Here's the options file:
This works in OC4 but not in OC 5. I think this is an OC 3 type options file structure right?
If I change this:
to:
(and remove a } at the bottom
The options file does work correctly