Extensions Module Manager Language Switcher
From Joomla! Documentation
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
To add a new Language Switcher module or edit an existing Language Switcher module, navigate to the Module Manager:
- Select Extensions → Modules
Click the New button and click on Language Switcher in the modal popup window.
To Edit an existing Language Switcher module, in the Module Manager click on the Language Switcher Modules Title or click the Language Switcher module's check box and then click the Edit button in the Toolbar.
- Title. The title of the module. This is also the title displayed in the front end for the module depending on the Show Title Form Field
- 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.
On this tab there is a list of menu items. You can choose between:
- On all pages
- No pages
- Only on the pages selected
- On all pages except those selected
from the List.
If the latter two options are selected a list will show with all the menu items on as shown in the screenshot above. This allows you to assign modules to some but not all pages, and by selecting the menu links that you want the module associated with you can customize on what pages modules appear/don't appear.
- See How do you assign a module to specific pages? for more information.
- 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 can also be used.
- Bootstrap Size. (Values 0 to 12) This allows you to choose the width of the module via the span element built into bootstrap.
- Header Tag. The HTML tag to use for the modules header or title. This can be an h1, h2, h3, h4, h5, h6 or a p tag. Note that you must use a module style (chrome) of html5 or add your custom module styles in <mytemplate>/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.
- Delete. (Inherited/Allowed/Denied). Allow or deny Delete for users in the Public group. Delete Allows users in the group to delete any content in this extension.
- Edit. (Inherited/Allowed/Denied). Allow or deny Edit for users in the Public group. Edit Allows users in the group to edit any content in this extension.
- Edit State. (Inherited/Allowed/Denied). Allow or deny Edit State for users in the Public group. Edit State Allows users in the group to change the state of any content in this extension.
- Frontend Editing. (Inherited/Allowed/Denied). Allow or deny Edit from the frontend of the site for users in the group.
At the top left you will see the toolbar:
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. This toolbar icon is not shown if you are creating a new 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.
- More about Modules: what is a module position, Description of the default Site and Administrator Modules.