Skip to the content.

ChangeLanguage v3

  1. Installation
  2. Basic configuration
  3. Advanced configuration
  4. Backend tools
  5. Frontend module
  6. Insert tags
  7. Developers
  8. Tips & FAQ

Insert tags

Several insert tags are provided to ease handling of multilingual websites with ChangeLanguage. Basically, the Contao core link insert tags are supported with a changelanguage_ prefix and language suffix.

The page reference can either be the database ID or the page alias.

Examples

  1. {{changelanguage_link::15::fr}}

    Generates a link to the french version of page ID 15.

  2. {{changelanguage_link_open::15::de}}

    Generates the opening anchor for linking to the German version of page ID 15.

  3. {{changelanguage_link_url::15::en}}

    Returns the URL to the English version of page ID 15.

  4. {{changelanguage_link_title::15::it}}

    Returns the title of the Italian version for page ID 15.

  5. {{changelanguage_link_name::15::es}}

    Returns the name of the Spanish version of page ID 15.