You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
When I use CollectionProperty in the Composite Property, Composite Property items does not see!
Attached example; when I click "add" composite items' add button, it is not added to the page.
The text was updated successfully, but these errors were encountered:
I've found the root of this problem. It has to do with the JSON deserialization routine. In order to protect the integrity of the system only know types are allowed when deserializing content. The known types are registered automatically at start-up by the CMS scanning the code for used property types. However this seems to fail when property types are nested, such in your example.
The error log would include something in the line of:
Could not deserialize {"$type":"DemoSite.Models.PropertyTypes.AccordionProperty","Color":{"$type":"KalikoCMS.PropertyType.SelectorProperty`1[[System.Int32, mscorlib]]","Value":1}}: Type specified in JSON 'KalikoCMS.PropertyType.SelectorProperty`1[[System.Int32, mscorlib]]' was not resolved.
..identifying what property failed (in this case SelectorProperty<int>)
I will look into fixing this issue, in the meantime the following workaround can be used to resolve the problem:
Add a new class to your project that inherits and implements the IStartupSequence interface. Set StartupOrder to something larger than 0 (this will tell the system to run this code at startup after everything else in the CMS have been initialized).
In the Startup method register any type that is used only by a composite property, in this case SelectorProperty<int>.
Hello,
![CollectionProperty-CompositeProperty](https://user-images.githubusercontent.com/18415694/78972607-715e8580-7b0e-11ea-9037-4b3d2ecced68.JPG)
When I use CollectionProperty in the Composite Property, Composite Property items does not see!
Attached example; when I click "add" composite items' add button, it is not added to the page.
The text was updated successfully, but these errors were encountered: