Download the PHP package guave/insertmodulebyalias-bundle without Composer
On this page you can find all versions of the php package guave/insertmodulebyalias-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download guave/insertmodulebyalias-bundle
More information about guave/insertmodulebyalias-bundle
Files in guave/insertmodulebyalias-bundle
Package insertmodulebyalias-bundle
Short Description Insert Module by Alias Insert Tag for Contao 4.13+
License ISC
Homepage https://www.guaveinteractive.ch
Informations about the package insertmodulebyalias-bundle
Insert Module By Alias Bundle
This is a utility which lets you reference a module by alias instead of ID. This is important if you have a deployment process with multiple stages, databases and systems that do not ultimately share the same module ids.
The DCA of tl_module is extended by a field "alias".
Requirements
- Contao 4.13+
- PHP 7.4 or 8.0+
Install
Usage
To load a module you can use the following syntax in your templates:
If you need modules for specific languages, add the language to the alias like _en
and then load it in your template
with:
Since Contao 4.13 you can also create a "Root page dependent Modules" Module. There you can select which module should be loaded for each root page.
All versions of insertmodulebyalias-bundle with dependencies
contao/core-bundle Version ^4.13 || ^5.0
symfony/config Version ^5.4 || ^6.4
symfony/dependency-injection Version ^5.4 || ^6.4
symfony/http-kernel Version ^5.4 || ^6.4