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

  1. On your Wordpress administration area navigate to Tools > Data export (/wp-admin/export.php)
  2. Select "Galleries"
  3. This will create an .xml file containing your Galeries and Attachments (images) metatdata. It will not contain any images itself, just their public URLs.
  4. Upload this .xml file into your Drupal private directory (private://wp-modula-gallery-xml-media-import/import.xml)
  5. Upload this module to modules/custom and modify the code as you need it! It typically won't work as-is.
  6. Run this in a development environment & take a backup of your Drupal project
  7. Enable the (modified) module in Drupal
  8. Run the import in your Drupal project (/config/development/wp-modula-gallery-xml-media-import)
  9. 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!

Supporting organizations: 
proudly developed this module for the community

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Project categories: Import and export, Media, Integrations
  • Created by anybody on , updated