Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The Organic groups module (OG) comes with sub-module called Organic groups register that allows users to join an existing OG group when they first register to use the site. These instructions explain how to set this up.
In this page, we will see how to handle an entityreference field in content type 2 referencing a content of content type 1 without having the id of the target, only its title.
And of course in all the languages we want.
Principle
For the main language import, we will be using an entityfieldquery to get the id of the content of content type 1 in the main language.
For the other languages import, we will use the main language import to be sure of the id of the target.
The main purpose of this cookbook is to show how to import one content type in as many languages as you want using CSV import.
It assumes that you have one csv file per language, that each is in the csv format, and that the content for all its translations are at the same line. It also assumes you're using the Content Translation method of translation, and not entity translation.
Force using "" to avoid problem with language like russian chinese, japanese, arabic, etc...