mod_admin_modules

Adds support in the admin for activating and deactivating modules.

The module overview in the admin presents a list of all modules, ordered by module status and priority. An activate/deactivate button allows the module to be (de)activated.

../../_images/mod_admin_modules.png

Module configuration dialog

When activate, some modules have a “configuration” button next to the activate/deactivate button. In that case, you can click the button to pop up a configuration dialog where you can set options which are required to configure the module.

To create such a dialog yourself, include a template called _admin_configure_module.tpl in your templates/ folder in your module.

Edit on GitHub

Controllers

controller_admin_module_manager

Shows the list of Zotonic modules currently known to the system.

Dispatch rules

dispatch_module_admin

Dispatch rules Name Path Resource Args admin_modules [“admin”,”modules”] controller_admin_module_manager…

Actions

module_rescan

Rescans all modules, to find all templates, lib files, dispatch rules, etc. again.

module_toggle

Activate/deactivate a module in the module manager in the admin interface.

Referred by

Modules

Modules are the building blocks of Zotonic. They add functionality to your Zotonic website such as:

All dispatch rules

All the dispatch rules from all modules. For a background on dispatch rules, see The URL dispatch system.