Download the PHP package oneup/contao-language-dependent-modules-bundle without Composer
On this page you can find all versions of the php package oneup/contao-language-dependent-modules-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oneup/contao-language-dependent-modules-bundle
More information about oneup/contao-language-dependent-modules-bundle
Files in oneup/contao-language-dependent-modules-bundle
Package contao-language-dependent-modules-bundle
Short Description Configure your Contao modules language dependent and have less page layouts!
License MIT
Homepage https://1up.io
Informations about the package contao-language-dependent-modules-bundle
Contao Language Dependent Modules Bundle
This Contao bundle provides a special module where you can configure your modules based on available languages.
This bundle is made for Contao 4.9 and newer.
Why this bundle?
The idea is to get rid of multiple page layouts (or inserttags with module IDs in combination with {{iflng::*}}
tags) for multiple languages.
Usage
You can now easy configure you modules for every language available:

and include this module in your layout:

This module will then render the configured module for each configured language.
Developers
The bundle provides an additional input type to use in your own code:
Use the default configuration (loads all available modules):
There is even more and you can customize this widget to your needs:
use options
(for custom list of modules):
use options_callback
(for custom list of modules):
use eval['modules']
(to filter for custom types):
Change the label for the blank option:
Note: If you just want to change the label for the blank option of the default field, the key is: tl_module.languageDependentModulesBlankOptionLabel
.
All versions of contao-language-dependent-modules-bundle with dependencies
contao/core-bundle Version ^4.9
doctrine/dbal Version ^2.13 || ^3.0