This project is not covered by Drupal’s security advisory policy.
For Export Content To YAML file and import To Database.
Add PATH CONTENT here : admin/config/content_export_yaml/setting
LOGIC BEHIND :
For export : one Entity such node,block_content , term become one YAML file .
For import : if Entity ID is exist in Database , it will be replace .
The export process is not export the reference field and Image field
Quick drush command
Update content_export_yaml module : drush dl content_export_yaml-8.x-2.8
Manager Content Export is ready on content_export_yaml 8.x-2.8
drush en manager_content_export_yaml
Want to support the development of this module?
EXPORT
- - For export all
- - For export single
- - For export by range IDs
drush cex-node [bundle] all or drush cex-block [block_type] all or drush cex-term [vid] all
for example : drush cex-node article all
drush cim-node [bundle] [filename]
for example : drush cex-node article 23
drush cim-node [bundle]
for example : drush cex-node article
IMPORT
- - For import all
- - For import single
- - For import by range IDs
drush cim-node [bundle] all or drush cim-block [block_type] all or drush cim-term [vid] all
for example : drush cim-node article all
drush cim-node [bundle] [filename]
for example : drush cim-node article 23
drush cim-node [bundle]
for example : drush cim-node article
For content_export_yaml 8.x-2.10 , service is available
- Manage your YAML files exported and import via backend
URL : /admin/config/content_export_yaml
For content_export_yaml 8.x-2.3 , service is available
- Content export can export and import all Drupal Entity sush as menu_link_content , user ,...
drush cex-entity [ENTITYPE] [BUNDLE] all
drush cim-entity [ENTITYPE] [BUNDLE] all
$export = \Drupal::service('content_export_yaml.manager');
$result = $export->export(1,'block_content','basic');
$result = $export->import(1,'block_content','basic');
For content_export_yaml 8.x-1.6
New Features :
- Export Content (Node - Block Content - Terms - ...) Via Views Operation Bulk using Views Bulk Operations (VBO)
For content_export_yaml 8.x-1.9 , service is available
$export = \Drupal::service('content_export_yaml.manager');
/**Default**/
$result = $export->importBlockAll('basic'); // required param block type
$result = $export->importNode(1,'article'); // required param id , type
$result = $export->exportTerm(1); // required param id
/**Custom Path **/
$options['path'] = '/sites/default/files/export';
$result = $export->importBlockAll('basic',$options);
$result = $export->exportTermAll('tags',$options);
$result = $export->exportNode(1,$options);
Project information
- Module categories: Content Editing Experience, Developer Tools
- 85 sites report using this module
- Created by miandry on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.