MODULES

Language menu

Let visitors switch between language versions of the current page.

Back to modules
Included with the systemNo separate catalog listing at present
FoxCoreCMS
01 / FOXCORECMS

Overview

What it does

The module links to corresponding localized URLs and can be styled for the site header.

Where it helps

Designed for multilingual projects with distinct page text and SEO metadata for each language.

Example from the demo template

This is a real placeholder from the FoXBuilder design. The system fills it with module output or current-page data; configurable instance labels are set in the admin panel.

<div class="language-switcher">[#lang_menu#]</div>
02 / FOXCORECMS

Where it helps

Switching between translated page versions on a multilingual site.

03 / FOXBUILDER

FoXBuilder demo example

The FoXBuilder header switcher links to corresponding page-language versions.

How to build it

  1. Create a module instance and choose its HTML template.
  2. Place [#lang_menu#] in the page template and bind the instance.
  3. Fill in content in the required languages.
  4. Open the demo page and check the result.

Template code

modules/language_menu/templates/default.html

<!-- @wrapper -->
<div class="header-info"><ul class="tmp-dropdown-menu switcher-language">
  <li><a href="%current_url%">%current_label%</a><ul>%items%</ul></li>
</ul></div>
<!-- @item -->
<li%active_attribute%><a href="%url%" lang="%code%">%label%</a></li>

Page-template label

[#lang_menu#]