News: We now have a RecipeML importer for Drupal 8

Created on 7 August 2017, over 7 years ago
Updated 8 January 2025, 2 months ago

If you've been waiting for a recipe importer for Drupal 8 then I have good news. I've written a module based on the core Migrate API that will allow you to import RecipeML into Recipe nodes. This module is contained in a sandbox on D.o at https://www.drupal.org/sandbox/dcam/migrate_recipeml β†’ . It can also be found on GitHub at https://github.com/dcameron/migrate_recipeml.

I've been hoping that another contrib module would be built that will give us the ability to create and control imports through the admin UI. Unfortunately, that hasn't happened yet. Feeds isn't ready. Core's Migrate only provides an API. The contrib modules that extend Migrate really only give you the ability to manually write migration configurations that are run using Drush. Fortunately, after a lot of study and experimentation I was able to use the Migrate API to build a very basic importer. It will allow you to upload a RecipeML XML file and import the recipes that it contains.

I consider this module to be a very imperfect solution. You can read more about why at the links above or in the README file. The tl;dr version is that the module doesn't do anything yet to help you manage imports and it also breaks some of the Drush migration tools. It's for those reasons that I've chosen not to create a full project for it on D.o or make it into a Recipe submodule at this time. It does work though, at least in testing. I believe it will suffice to help people get recipe content into their sites.

If you encounter a problem with it, you can create an issue in the sandbox's queue or on GitHub.

I plan on trying to create a MasterCook importer too, but it may take a while. Frankly, MasterCook's documentation about their export format sucks and having to parse their non-structured data is a pain.

✨ Feature request
Status

Closed: works as designed

Version

2.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States dcam

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024