Create content in a grid from the ContentService api - best practice
Hi,
I haven't been able to find any info about how you are supposed to create content via the ContentService api, when you are trying to populate a grid editor.
When i check the Database for how the data is constructed, when populating the grid manually via the Backoffice, it displays a JSON array, that defines the row, cell and grid property editor etc. But it also includes a GUID, which I can't figure out why is there.
This guy (Populate grid layout with IContent.SetValue) displays a method of just writing a JSON string with the given layout of the property editor, and then filling out the value, with whatever content he is migrating from somewhere else.
Is this the correct approach, (best practice), or is there a better more logical way of doing it?
Will the GUID interfere in any way, if i migrate 10.000 nodes of data with the same GUID in the grid editor JSON data?
Create content in a grid from the ContentService api - best practice
Hi, I haven't been able to find any info about how you are supposed to create content via the ContentService api, when you are trying to populate a grid editor.
When i check the Database for how the data is constructed, when populating the grid manually via the Backoffice, it displays a JSON array, that defines the row, cell and grid property editor etc. But it also includes a GUID, which I can't figure out why is there.
This guy (Populate grid layout with IContent.SetValue) displays a method of just writing a JSON string with the given layout of the property editor, and then filling out the value, with whatever content he is migrating from somewhere else.
Is this the correct approach, (best practice), or is there a better more logical way of doing it?
Will the GUID interfere in any way, if i migrate 10.000 nodes of data with the same GUID in the grid editor JSON data?
Best regards Daniel
is working on a reply...