On a paid plan, the published version of a design can be exported as a standalone Moodle theme: a zip to install like any theme, on a site that does not need Brandable.
Export
- Publish the version you want to export.
- In the editor, Export as a theme (or Site administration > Appearance > Themes > Export as a theme).
- Choose the name of the theme (
theme_<name>: lower case letters, digits and underscores), and what to do with the changes scoped to a course or an activity (same id, ID number, short name, or leave out) for the target site. - Download the zip. It is downloaded once.
Export again under the same name to make a new version of the same theme: Moodle sees it as an update.
Install the exported theme
Install the zip from Site administration > Plugins > Install plugins, then select the theme. It inherits from the same parent theme as the design, which must be installed on the target site.
The exported theme contains the styles, the template overrides, the images and fonts, and the modules of generated JavaScript of the version (they run only if the JavaScript is turned on in the theme).
Licence
The exported theme is GPL, like Moodle. It holds a licence key, checked once a day by a scheduled task:
- the check never blocks the site and never slows a page down: while the licence is not valid, the administrators see a banner, nothing else changes;
- the key can be revoked from the Brandable dashboard, for instance if the zip leaked;
- the daily check can be turned off in the settings of the theme; an offline licence is available for sites without internet access.
Import an exported theme
On a site with Brandable, Import an exported theme reads the design of a zip exported from Brandable and makes it a new version of the site, published or as a draft. Only the styles and the templates of the zip are read, and they are checked again; nothing of the zip is installed. Generated JavaScript from the zip is reviewed again before it can be published.