frontend_module - Twig Function
Info
This feature is available in Contao 5.2 and later.
The frontend_module function renders a front end module.
To render a front end module that already exists in the database (similar to the {{insert_module::*}} insert tag) you
can pass its ID:
You can also override the data for an existing front end module:
You can also render a front end module on the fly by passing the type of the front end module and the configuration:
You can also pass an existing fragment reference, if one was provided by a controller.
Arguments
typeOrId: Either the type of a front end module, the database ID of an existing front end module or a fragment reference.data: The data for the front end module to be rendered. You can also use this to overwrite the configuration of an existing front end module.