Overview of a theme deployment
The previous pages of this section describe how to build a customization. This page describes how to deploy a complete customization, what is usually called "a theme", to an S-Filer Portal installation.
A complete theme is made of three independent components. They are stored in different places and deployed in different ways, and you do not have to deploy all three: you can deploy the user interface theme without the email templates, and the other way around.
| Component | Where it is stored | How it is deployed |
|---|---|---|
| User interface theme | File system of the gateway; the name is declared in a notification theme | Unpack the archive in the themes directory of the web application, then declare its name in the User interface theme field of a notification theme |
| Email templates | Database | The import-notification-themes command of the S-Filer Config CLI |
| Label overrides | Database (ResourceBundlePropertyOverride table) | Run a SQL script with a database client |
The same theme name (my-theme in the examples of this section) is used for all three components.
The archives
A theme is usually delivered as a set of ZIP archives, one per component:
- my-theme.zip: the user interface theme.
- my-theme-mail.zip: the email templates.
- my-theme-properties.zip: the label overrides, containing a properties.sql script.
Each archive is deployed independently, as described below.
Deployment order
The three components are independent, so any order works. When you deploy all of them, this order avoids showing users a half-applied customization:
- Deploying the user interface theme, on every gateway.
- Deploying the email templates, once, in the database.
- Deploying a set of label overrides, once, in the database.
See Also
Some deliveries also contain the license and acknowledgment pages of the portal. Those are not covered here; see Setting the EULA and acknowledgment pages and the how-to How to configure multiple license or acknowledgment pages for different populations.
Warning
Only the user interface theme is stored on the file system. The installer carries your own theme folders over to the new version automatically; only changes made directly in the sfiler or commons themes are lost. See Preserving your customizations during upgrades.
