How widget data is stored??
Hello,
I wanted to know how kentico manages/stores the data of widgets. Also wanted to know if we can create the widget using programmatically. As kentico has content item api and from using that api we can create content item so do we have any way for doing the same for widget.
If kentico does not provide then is there any way of doing using custom development.
Environment
- Xperience by Kentico version: [30.3.1]
- .NET version: [8]
- Execution environment: [SaaS]
Answers
For Widgets, they are stored as JSON data in the CMS_ContentItemCommonData.ContentItemCommonDataVisualBuilderWidgets table/column.
Creating widgets programmatically may be possible, but not easy. I don't think there's many APIs for it, most of the classes are internal sealed. You would have to create your own mimic-classes of the different Page Builder classes and serialize, which i did in my KX12 Portal to KX13 migration toolkit, so overall, i wouldn't assume you can.
To answer this question, you have to login first.