Skip to content

Deploying the user interface theme ​

The user interface theme (the logos, the CSS files and the images described earlier in this section) is a simple directory on the file system of the gateway. Deploying it consists of copying that directory to the right place and telling S-Filer Portal to use it.

Unpacking the theme ​

Unpack my-theme.zip in the themes directory of the web application, so that the theme becomes a subdirectory named after the theme:

<installation>/sfiler-gateway/gateway/webapps/sfiler-gui-ajax/themes/my-theme

The directory should contain the css and images subdirectories described in Customizing the theme of the application and Adding your company logos.

Warning

On an installation with more than one gateway, repeat the operation on every gateway. A theme deployed on a single gateway produces an inconsistent interface, depending on which gateway serves the request.

Declaring the theme ​

A directory on disk is never used on its own: its name must also be declared in the User interface theme field of a notification theme. The field expects the name of the directory exactly as it appears under themes. See Managing Notification Themes in the Administration Guide.

Behind the scenes, S-Filer Portal keeps a Theme table that mirrors the notification themes, one row per theme, and stores the value of the field in its GUITHEME column. That table is maintained automatically when you create, modify or delete a notification theme; you never edit it by hand.

Warning

The name of the directory is not the name of the theme. They are two distinct values: on a fresh installation the single delivered theme is named Base theme 4.21 while its user interface theme is sfiler, the directory shipped with the product.

The notification theme must also be active. When S-Filer Portal resolves the theme of a request, it only accepts a value that is at the same time present on disk and declared by an active theme. A value that fails either test is ignored without an error, and the user silently gets the default theme.

Choosing who gets the theme ​

To theme the whole installation (the usual case), create a notification theme with Base theme 4.21 as Source theme (see Add a notification theme), set its User interface theme field to the name of your directory, then make it Active and Default. Every user gets the new theme. The base theme itself cannot be modified: its User interface theme field is read-only.

To give different themes to different populations, create one notification theme per look, each with its own User interface theme, then open each group concerned and select the theme in its Theme field. Groups left on <Use default theme> follow the default theme.

Warning

A user who belongs to several groups that specify different themes falls back to the default theme until the conflict is resolved.

Important

The cfg.java.gui.theme configuration key does not select the theme of an installation. Since version 4.20.0 it is only a safety net: if the directory named by the default theme is missing from the gateway, the web interface logs an error and falls back to the theme named by this key. If that directory is missing as well, the web interface refuses to load its configuration.

Verifying the result ​

Open the login page of the portal. If the new theme does not appear right away, clear the cache of your web browser, then the cache of the S-Filer gateway.

See Also

To keep your theme when S-Filer Portal is updated, see Preserving your customizations during upgrades: the installer carries your own theme folders over, but replaces the sfiler and commons themes.