- Download or require the module to your project
- Enable the module
- If you want to setup the cloud environment usage for testing or content archive reasons, visit /admin/config/content/osk_content_export_settings or set that up in settings.php.
- Go to any content and click the export tab
- Add a filename without the extension
- Check away dependencies if you don't want any
- Export the user if you want to add that specific user.
- If you want to obfuscate some field fill that in.
- Choose "All in one zip package"
- Click export and a zip file will be created
- Go to /admin/content/osk-import
- Upload a zip file
- If you want to import a file on the server, use Server Path instead
- Fill in extra options if you want
- Import
- Follow steps 1-5 of "Export on any environment as zip"
- Choose "Upload to cloud"
- A yaml file will be created
- Go to /admin/content/osk-import
- Upload a yaml file
- If you want to import a file on the server, use Server Path instead
- Fill in extra options if you want
- Import
Use the function osk_content_import_import($file, $uri = '', $uid = NULL, $remove_timestamp = TRUE)
Use the following command Given the content :contentfile exists on :uri