2. Installation and activation
The module installs like any Dolibarr module, with a few automatic checks that guarantee a smooth start.
- Install the module in the htdocs/custom/moderntemplate directory: this location is mandatory and activation is refused anywhere else.
- Activation checks the PHP version (8.1 minimum) and the Dolibarr version (branches 18 to 24).
- Two tables for preferences and tiles are created automatically, on MySQL/MariaDB as well as on PostgreSQL.
- A "Modern Theme" entry is added to Dolibarr's top menu.
- Ready-to-use default values are set: full screen, redirection after login and introduction modal.
- Disabling the module is not destructive: tiles and settings are kept. Fully purging the data is a separate, explicit action (Uninstall tab).