You can use all_modules to access a module by its ID. This returns the Module object for the specified module. If the module isn’t found, then null is returned. The all_modules object is decided on runtime, so it’s not a static object. It’s different for each user, based on what group they belong to, if they’ve classes unlocked now, etc.

Syntax

{{ all_modules[module_id] }}

Scope

It’s accessible globally, in any template, section or block.

Example

{{ all_modules["my-module"].name }}
Basic Recipes