We have made quit some progress with our website and are now thinking about doing some content migration test.
Do you know any module to map the fields of a content type from Drupal 7 to Drupal 8 ?
Also, we have tags in the body of our articles on our current Drupal 7 website allowing us to position content. They use the syntax [ nameOfTheTag ] , we would like to exclude them from the migration. Is there a way to do so ?
Personally I prefer to use feeds for content migration. You can create a json feed with all the data that you want from your website in Drupal 7 and then import the data from that feed in Drupal 8.
For the feeds extensible parsers follow the module’s instructions in order to install the necessary library and detect it using Ludwig module. You have to use the extensible parser’s dev version.
Once you have everything set, create a new feed in your Drupal 8 website Structure->Feed types using Jsonpath and map it to a content type. Then you can start mapping fields from the feed to your content type.
Finally you go to Content->Feeds and you create a new feed. You put the URL of your JSON feed and then click on import.
Quick question, you told me last time that i could expose a json feed from Drupal 7 so i could consume it from Drupal 8 and create my nodes. I did a bit a research but didn’t find anything really relevant to expose json from Drupal. Is there some module i could use ?
Download and install the Views Datasource module. It allows you to expose JSON from a view. This module is composed of different output format. Once you install the module, activate the submodule named View JSON
Go to Structure > Views
Create a new view with the following settings :
Show : Content
Type : The kind of content type you want to expose
Create a page
Path : by default the title of your view, note that this URL is the one of your ressource and you’ll need to get the get from Drupal 8
Display format : JSON data document
Items to display : here pick the number of item you want to expose
User a pager : Uncheck this field
Edit your view to add the field you would like to expose