clarity-h2020 / docker-drupal

Drupal 8 Project for implememting the CLARTIY CSIS Platform.
https://csis.myclimateservice.eu
GNU Lesser General Public License v3.0
3 stars 0 forks source link

Importing/Exporting taxonomy terms between Dev and Prod environment #144

Closed patrickkaleta closed 4 years ago

patrickkaleta commented 4 years ago

UPDATE: This will serve as a plan B. The preferred way for importing/exporting taxonomy terms will be via Migrate, since that is also used for synchronizing content types.

For the import and export of taxonomy terms (EU-GL definitions, Study type definitions, hazards, el. at risk,...) we can use the Structure sync module as an alternative to the Migrate module in Drupal 8, which can migrate taxonomy terms, as well as other content types (that's why the Migrate module is going to be the preferred solution).

How to use

1) in the BE navigate to Structure -> Structure Sync -> Taxonomies and export ALL taxonomies 2) via Drush export and import the Drupal configurations, which now also contain the taxonomies (see #138 for details on how to migrate configuration) 3) run in target environment Drush command drush import-taxonomies and select the "Full" option for the import

How it works