Migration from other solutions
You are browsing documentation for an older version of Drupal, which is not supported any longer, and the information may not be correct. See current documentation for Contributed modules
This is just an outline, please help completing this page with more details.
It is quite easy to migrate from many other "media" solutions to Scald.
General purpose methods
From IMCE/embedded images modules
Get a list of used files from the text fields/from the {files} table and create scald_image atoms. Enable MEE module.
From File Entity based modules
Add an atom for each file, use hooks to create new atom when a file is added.
From File Field modules
Use Atom Reference module.
From nonexistent module
Just install Scald module.
Using Migrate module
Scald support Migrate out of the box using Migrate/Migrate Extras modules. For example, with destination is Scald atom of type image, provider scald_image:
$this->destination = new MigrateDestinationEntityAPI('scald_atom', 'image');
$this->map = new MigrateSQLMap($this->machineName,
array(
'sourceid' => array(
'type' => 'int',
'notnull' => TRUE,
),
),
MigrateDestinationEntityAPI::getKeySchema('scald_atom')
);
$this->addFieldMapping('title', 'title');
$this->addFieldMapping('type')->defaultValue('image');
$this->addFieldMapping('provider')->defaultValue('scald_image');
$this->addFieldMapping('scald_thumbnail', 'field_node_gallery_image_fid')->sourceMigration('Files');
$this->addFieldMapping('scald_thumbnail:file_class')->defaultValue('MigrateFileFid');
$this->addFieldMapping('scald_thumbnail:preserve_files')->defaultValue(TRUE);
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion