Language Availability module

Edition

Incubator (services)

Git

Git

Latest

1.0

Compatible with Magnolia 6.2.

The Language Availability module provides more granular control over the language availability in site definitions.

This module is at the INCUBATOR level.

Installing with Maven

Maven is the easiest way to install the module. Add the following to your bundle:

<dependency>
  <groupId>info.magnolia.i18n</groupId>
  <artifactId>magnolia-languages-availability</artifactId>
  <version>1.0</version>
</dependency>

<dependency>
  <groupId>info.magnolia.i18n</groupId>
  <artifactId>magnolia-languages-availability-livecopy</artifactId> (1)
  <version>1.0</version>
</dependency>
1 This is only needed if using Live Copy.

Configuration

i18n authoring support

The module automatically changes the implementation of the i18n authoring support with the following:

  • Standard

  • With Live Copy

server:
  i18n:
    authoring:
      class: info.magnolia.i18n.language.availability.MultiSiteI18nAuthoringSupportWithSecurity
server:
  i18n:
    authoring:
      class: info.magnolia.i18n.language.availability.livecopy.LiveCopyI18nContentSupportWithSecurity

i18n content support

In order to use the languages availability feature on your website, you will need first to change the i18n content support of the related site definition with the following implementation:

  • Standard

  • With Live Copy

mySiteDefinition:
  i18n:
    class: info.magnolia.i18n.language.availability.MultiSiteI18nContentSupportWithSecurity
mySiteDefinition:
  i18n:
    class: info.magnolia.i18n.language.availability.livecopy.LiveCopyI18nContentSupportWithSecurity

You can then assign availabilities per language as following:

mySiteDefinition:
  i18n:
    class: info.magnolia.i18n.language.availability.livecopy.LiveCopyI18nContentSupportWithSecurity.
    locales: ...
    localesAvailabilities: (1)
      en:
        access:
          roles:
            - role1
            - role2
1 The name of the nodes under localesAvailabilities must match the names of the nodes under locales.

Changelog

Version Notes

1.0

Initial release of the module.

Feedback

Incubators

×

Location

This widget lets you know where you are on the docs site.

You are currently perusing through the Language Availability module docs.

Main doc sections

DX Core Headless PaaS Legacy Cloud Incubator modules