Href Lang Exchange

This project is not covered by Drupal’s security advisory policy.

Installation

The next modules would need to be installed:

  • href_lang_exchange
  • href_lang_exchange_lang_country_override
  • href_lang_exchange_custom_logos
  • href_lang_exchange_entity_manager
  • href_lang_exchange_href
  • href_lang_exchange_import_export

Install the modules like any other Drupal module.

Configuration

Once every required module has been installed, you would need to follow the next steps in order to configure the module:

This configuration would simulate a scenario with three sites, Master site (UK site) and two slaves (DE site and US site). The configuration needs to be done on each site.

  1. Go to Configuration > Web services > JSON:API (/admin/config/services/jsonapi) and configure it to "Accept all JSON:API create, read, update, and delete operations".
  2. Go to Configuration > Regional and language > Regional settings (/admin/config/regional/settings) and set the default country for each site.
  3. Go to Structure > Site list > Settings (/admin/structure/site_entity/basic_settings) and configure the API endpoint url with the Master site url and an authentication key (it might be the same for each site), after that there are the options to queue the process. If these are not active, the system execute it directly which can cause performance problems with larger constructions.
  4. Go to Structure > Site list (/admin/structure/site_entity) and add each site (UK, DE and US). The sites might be connected with each other.

Usage

Once the sites have been configured, everything is ready to start to use the functionality provided for the modules.

  1. You would need to add field of type 'Href lang exchange item' to the entity where would you like to use it.
  2. Once you create an entity using the 'href lang exchange item' field on any of the slave sites, this will be automatically reflected on the master site.
  3. To check it, on the Master site go to Structure > Href lang item List (/admin/structure/href_lang_item/list).
  4. Finally, to have the option to switch between the different entities which are using the functionality, go to Structure > Block layout (/admin/structure/block) and place the href lang item language switcher to the section where would you like to show it.
Supporting organizations: 
Development Time

Project information

Releases