Experimental project
This is a sandbox project, which contains experimental code for developer use only.
Little (quick & dirty) helper module to import Modula Galleries from a Wordpress XML Export into Drupal Media Images.
DO NOT USE THIS UNLESS YOU KNOW WHAT YOU ARE DOING! DEVELOPERS ONLY!
This is NOT an end-user module, just a codebase helpful for other developers. It's very specific to our requirements and contains hard-coded entity names, field names, etc.!
As long as this is the case, this will stay a sandbox module.
Anyway, feel free to copy the code and fit it to your needs! :)
How it works
- On your Wordpress administration area navigate to Tools > Data export (/wp-admin/export.php)
- Select "Galleries"
- This will create an .xml file containing your Galeries and Attachments (images) metatdata. It will not contain any images itself, just their public URLs.
- Upload this .xml file into your Drupal private directory (private://wp-modula-gallery-xml-media-import/import.xml)
- Upload this module to modules/custom and modify the code as you need it! It typically won't work as-is.
- Run this in a development environment & take a backup of your Drupal project
- Enable the (modified) module in Drupal
- Run the import in your Drupal project (/config/development/wp-modula-gallery-xml-media-import)
- Compare results and hopefully have a happy day! :) Take the saved time and help to improve this and other Drupal modules!
Contribution & generalization
If you wish to provide more general functionality to this module or make it compatible with default Drupal Core Media installations, feel free to create and fix issues. I won't invest any further time as maintainer, as it was just a quickfix solution and I wanted to help by sharing the code!
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.Maintenance fixes only
Considered feature-complete by its maintainers.- Project categories: Import and export, Media, Integrations
- Created by anybody on , updated


