Hi
I have exported my collection from Cockpit Next and now want to import them into V2 Core.
Can this be done?
thanks in advance
Hi
I have exported my collection from Cockpit Next and now want to import them into V2 Core.
Can this be done?
thanks in advance
Hi,
we are facing the same issue. We want to migrate from Cockpit next to V2 Core but there is no proper way to do this.
thanks!
Same here, missing an upgrade path
This is also stopping me from upgrading - I had done all the install etc only to realise there’s no import option - unless we’re missing something?
Anyone find a solution for this? Import data from JSON file?
I need to migrate data from an old CMS to COCKPIT and the API seemed to me to be the best way to import. I made a page that exports data in the necessary structure for IMPORT. I generated the structure directly via COCKPIT CMS → NEW/EDIT item → ACTIONS (3 dots) → JSON Object, which is quite helpful so that one does not have to write everything manually and avoids a lot of typos in the description Import is possible via PHP itself, where data is only loaded in JSON format and sent via API to COCKPIT CMS. I am playing around with editing the “modules/Content/api.php” file for the PLAYGROUND API, where I will add my own parameter for importing multiple records at once. At my own risk of course
$data = $app->param('data');
$import = $app->param('import');
If I set the IMPORT parameter to TRUE, I would loop through DATA as a field with multiple records. I can also send the model this way without writing it in the text field.
if($import) $arr = $data;
else $arr = [$data];
foreach($arr as $data) {
...VALIDATORS and SAVEITEM code