Help310

Extensions Module Manager Language Switcher

From Joomla! Documentation

Other languages:
Deutsch • ‎English • ‎français


Description

This module allows you to switch between available Content languages. Selecting a language will take you to the home page for that language.


How to Access

Add a new module 'Language Switcher'

  • Select Extensions  Modules from the dropdown menu of the Administrator Panel.
  • Click the New button in the toolbar
  • Select the Module Type Language Switcher.

Edit an existing module 'Language Switcher'


Screenshot

Help-3x-modules-site-module-manager-module-language-switcher-en.png


Form Fields

  • Title. The title of the module. This is also the title displayed in the Frontend for the module.

Module

  • Pre-text. This is the text or HTML that is displayed above the language switcher.
  • Post-text. This is the text or HTML that is displayed below the language switcher.
  • Use Dropdown. (Yes/No). If set to 'Yes', the display parameters below will be ignored. The content languages native names will display in a dropdown.
    • Use Flags For Dropdown. (Yes/No). Add image flags to the dropdown.
    • Line Height. (Yes/No). If set to 'Yes', will decrease the line height when using flags.
  • Use Image Flags. (Yes/No). If set to 'Yes', will display language choice as image flags. Otherwise will use the content language native names.
  • Active Language. (Yes/No). Display or not the active language. If displayed, the class 'lang-active' will be added to the element.
  • Horizontal Display. (Yes/No). Default is set to 'Yes', i.e. to horizontal display.

Note: If 'Use Dropdown' and 'Use Image Flags' have been set to 'No', the switcher will display language names.

Menu Assignment

Help30-module-manager-menu-assignment-screenshot-en.png

Module Assignment:

  • On all pages: Module is shown on all pages.
  • No pages: Module is not shown on any page.
  • Only on the pages selected: 'Menu Selection' will show with all the menu items on. You can assign modules by selecting the menu links that you want the module associated with on what pages modules appear.
  • On all pages except those selected: 'Menu Selection' list will show with all the menu items on. This allows you to assign modules by selecting the menu links that you want the module associated with on what pages modules don't appear.

Learn how to assign a module to specific pages.

Advanced

Help30-module-manager-advanced-layout-suffix-tag-bootstrap-tag-class-style-screenshot-en.png
  • Layout. If you have defined one or more alternative layouts for a module either in the template or Joomla Core, you can select the layout to use for this module.
  • Module Class Suffix. A suffix applied to the CSS class of the module. This allows you to create customized CSS styles that will apply just to this module. You would then modify the template.css or custom.css file of your template to apply styling to this new class.
    • Enter this parameter with a leading space to create a new CSS class for this module.
    • Enter the parameter without a leading space to change the CSS class name for this module.
  • Module Tag. The HTML tag for the module to be placed in. By default this is a 'div' tag but other HTML5 elements (address/article/, …) can also be used.
  • Bootstrap Size. (0/…/12) This allows you to choose the width of the module via the span element built into bootstrap.
  • Header Tag. (h1/h2/h3/h4/h5/h6/p/div) The HTML tag to use for the modules header or title. Note: You must use a module style (chrome) of 'html5' or add your custom module styles in [yourtemplate]/html/modules.php.
  • Header Class. Here you can add optional CSS classes to add to the modules header or title element.
  • Module Style. You can use this option to override the templates style for its position.


Permissions

Manage the permission settings for user groups.

Help30-module-manager-menu-permissions-screenshot-en.png

To change the permissions for this module, do the following.

1. Select the Group by clicking its title located on the left.
2. Find the desired Action. Possible Actions are:
  • Delete. Users can delete content of this module.
  • Edit. Users can edit content of this module.
  • Edit State. Users can change the published state and related information for content of this module.
  • Frontend Editing. Allows users in the group to edit in frontend.
3. Select the desired Permission for the action you wish to change. Possible settings are:
  • Inherited: Inherited for users in this Group from the module options permissions of this site.
  • Allowed: Allowed for users in this Group. Note that, if this action is Denied at one of the higher levels, the Allowed permission here will not take effect. A Denied setting cannot be overridden.
  • Denied: Denied for users in this Group.
4. Click Save in Toolbar at top. When the screen refreshes, the Calculated Setting column will show the effective permission for this Group and Action.


Toolbar

At the top left you will see the toolbar.

Help32-Save-SaveClose-SaveNew-SaveAsCopy-Close-toolbar-en.png

The functions are:

  • Save. Saves the module and stays in the current screen.
  • Save & Close. Saves the module and closes the current screen.
  • Save & New. Saves the module and keeps the editing screen open and ready to create another module.
  • Save as Copy. Saves your changes to a copy of the current module. Does not affect the current module.
    Note: This toolbar icon is only shown if you edit an existing module.
  • Close. Closes the current screen and returns to the previous screen without saving any modifications you may have made.
  • Help. Opens this help screen.


Related Information

  • More about Modules: what is a module position, Description of the default Site and Administrator Modules.