In this section we will describe all settings related to branding of HTTP Commander.
Starting from version 8.1 most of the settings related to branding of the application are placed in one section : "Branding" section on the "Settings" in the Admin panel.
On this section you can change theme, change theme colors and see how it looks at runtime without page reloading, upload logo images and set own welcome message.
In most cases it will enough to open this section of the Settings tab and tune needed settings.
For those, who need to fine-tune the app here is detailed description :
-
Application name, title, loading text
-
Application title ("Web files access") configured in the localization settings.
Open Admin panel, Localization tab, select needed language (English , for example) and search for "CommonMainTitle" setting. Set needed value.
-
Loading text ("Loading of web files access") configured in the localization settings.
Open Admin panel, Localization tab, select needed language (English , for example) and search for "CommonApplicationLoading" setting. Set needed value.
-
Application name can be changed in the application settings.
It used as basic auth realm (if it not specified explicitly with BasicAuthenticationRealm setting).
Also can be used for the template of the letter with public links.
Open Admin panel, Settings tab, and search for ApplicationName setting. Set needed value.
-
Put your logo
You can set your own logo on the login page,
on the top of the main User Interface or on the top panel.
-
To change logo on the top panel, modify the
parameter at the Branding section on the Settings tab of the Admin Panel.
By clicking on the image to the right of the field,
upload your logo image on the path Scripts/logolarge.png.
Or you can manually replace this file in the HTCOMNET\Scripts\ folder.
Note. If you insert an image, in its' html style tag, make sure you specify the sizes in pixels:
style="width:Wpx;height:Hpx;" or style="max-height:Hpx;".
-
To show the logo on the toolbar, add Logo to the
ToolbarButtons1
or ToolbarButtons2
parameters at Application settings.
To modify logo (set your own image):
- Place the logo.png image in the HTCOMNET\Scripts\ folder.
-
Or you can upload the logo through the settings by clicking on the logo image
in parameter LogoToolbarImage
on the Logos tab of the Branding settings.
Also you can specify data: URI instead upload the image, for example:
data:image/png;base64,iVBORw0KGgoAAAAN ... dY2P0ED1AAAAAElFTkSuQmCC
-
It is recommended to use images with a width not exceeding 150px
and a height of no more than 25px.
-
Also see advanced parameters for logo in the toolbar:
LogoToolbarHint,
LogoToolbarUrl,
LogoToolbarUrlOpenInNewPage
-
Themes
HTTP Commander is distributed with several predefined themes:
- main (used by default with blue color, however, you can set any color - background, text, etc)
- material (you can choose from 19 color schemes)
- crisp
- classic-blue (classic theme)
- classic-gray (classic theme)
- aria (WCAG adopted)
- graphite (WCAG adopted)
Style based on the "main" theme allows you to specify your own (corporate) values for the main color, text and selection colors
as well as the font family and its boldness using following parameters:
Or choose one of the presets:
black,
blue,
blue-gray,
brown,
cyan,
gray,
green,
indigo,
purple,
red,
teal.
For style based on the "material" theme there are 19 options to choose for
MaterialThemeColor (main color) and
MaterialThemeAccentColor (accent color)
from:
Red,
Pink,
Purple,
DeepPurple,
Indigo,
Blue (default for main color),
LightBlue,
Cyan,
Teal,
Green,
LightGreen,
Lime,
Yellow,
Amber,
Orange,
DeepOrange,
Brown,
Grey (default for accent color),
BlueGrey
Add-on in the "material" theme, you can enable the dark mode by setting
MaterialThemeDarkMode.
Open Admin panel, Settings tab, Branding, and select needed value for
StyleThemeName setting
and then colors on the "Colors, font" tab (if "main" or "material" theme is selected).
Additionally, it is possible to set the theme and colors in the link
in the query string for the main page, administration and public links, for example:
.../Default.aspx?theme=main&themeColor=red&themeAccentColor=green
.../Default.aspx?theme=material&themeColor=amber&themeAccentColor=teal
.../Default.aspx?theme=main&themeColor=3f51b5&themeAccentColor=607d8b
.../public/?folder=...&theme=classic-gray
At the same time, you can specify the color in hex format (without the # prefix) for the "main" theme.
Also, on the Other tab, it is possible to enable rounded corners for most UI elements using
RoundCorners setting.
CSS style for round corners UI defined in file Images/css/rounded.css. You can edit border radius if required.
-
Icons
Staring from the version 7.0, font icons are used by default for the UI.
For compatibility reasons, we have kept the old (multi color vector) HTTP Commander icons.
To use old icons set simply set to false tha value of the UseFontIcons setting (Admin Panel, Settings tab, Branding, Other tab).
The main advantage of font icons is that you can change their color.
You can do that with the FontIconsColor setting.
-
Welcome message
You can use welcome message to show some notices to users when they logs into applicaiton.
Open Admin panel, Settings tab, Branding, Welcome tab, and search for
WelcomeWindowMessage setting. Set needed value.
Additonally you can allow users to hide this message for next logon with setting
WelcomeWindowAllowHideOnNextLogon.
-
Branding of public links page
By default public folder page uses the same theme and colors as the main UI. (The value of the PublicFolderNewUI setting is set to true) .
In the current version there is three settings to customize public link page.
The first setting allows to set custom html code on the top of the public link page. You can use it to add your logo and brand name to public link page.
Open Admin panel, Settings tab, Branding, Logos tab, and search for
setting. Set needed value.
The second setting ExpandUploadFormWhenOpenPublicFolder
allows you to control whether the file upload panel is collapsed or expanded when the public folder is opened (if it is allowed to upload files in public folder).
Default - collapsed. This setting applies only for "old" public link UI (PublicFolderNewUI is set to false) .
And finally, the third (additional) setting ShowExpirationDateForPublicLink,
allows you to show or hide the expiration date of the link. By default it is shown.
See also, how to apply branding to the e-mail template for sending public links.
-
MSOFBA login page
When MSOFBA support is enabled (true by default), then MS Office will display html login form when document is opened.
There are several settings to configure this login page:
-
MSOFBAloginPageBackgroundImage - configure background image.
Open
Admin panel, Settings tab, press on "Show advanced parameters" and search for
MSOFBAloginPageBackgroundImage setting. Set needed value.
-
MSOFBAloginPageCaption - login page caption
Open
Admin panel, Settings tab, press on "Show advanced parameters" button and search for
MSOFBAloginPageCaption setting. Set needed value.
-
Default.aspx and Logout.aspx
These pages are with open source code. You can edit them for your needs.
Feel free to change layout of UI elements, style and action handlers.
-
Default.aspx - This file is responsible for Forms and Windows authentication and loading of main/mobile interface.
Also this file contain registration form, password/username remind form, second step auth form.
-
Lougout.aspx - The file controls user logout process.
-
Email templates
HTTP Commander can send several types of the email notifications to users and administrators.
Starting from version 7.5. HTTP Commander uses email templates to generate emails messages. Email templates are located in the App_Data\EmailTemplates\ subfolder of the root folder of the application.
And Starting from version 8.1 main theme color also applies to email template.
There are 3 templates available :
-
main-tpl.html - the main template used for all email notifications , except 2 types below.
-
ChangesNotification\tpl.html - notification email about changes in the file /folder, user has subcribed to. Contains information about user actions on files/folders.
-
PublicEmail\tpl.html - email template used when user shares file/folder with a public link.
Here are screenshots of how it looks in a different email agents:
Screenshots
You can create (or use an already existing) localized file by adding a suffix
with a two-letter language name, for example "-fr", "-de", "-ja" (for English, the suffix "-en" is not necessary).
By default, there are already such files for the German language (suffix "-de"), French ("-fr"), Italian ("-it"), Spanish ("-es") and Russian ("-ru").
This file is a plain HTML document that you can edit in notepad or in another text/code editor.
It is also possible to specify relative URLs to PNG images from the Images/ folder in the root of the application.
In this case, the file must exist and its name should contain only Latin characters, numbers, hyphens. For example, you can place an image in the email template:
<img src="Images/hclogomin.png" />
In this case, when sending a message, this picture will
be added to the attachments and instead of src value - the value cid:hclogomin.png.
All templates contain placeholders - special variables which are replaced with a real values at the execution time.
Here is the list of placeholders which are common for all templates and can be used in any of them:
-
{title} The value is taken from the email subject, it is different for each email type.
You can search for localization parameters which contain "Subject" word in their names.
-
{ApplicationTitle} The value is taken from the localized string CommonMainTitle.
See Application name, title, loading text section.
-
{ApplicationName} The value is taken from the parameter ApplicationName.
See Application name, title, loading text section.
The default value is HTTP Commander.
-
{ApplicationUrl} Your HTTP Commander application URL address.
See parameter ExternalAppUrl.
By default it is placed at the bottom of the e-mail message.
-
{RelativeLogoUrl} Relative URL to the icon with logo image - has a constant value Scripts/logo.png.
Icons are included as an attachments and instead of links to the files on the web server, values like "cid:logo.png" will be used in the email body.
-
{LogoUrl} Full URL to the application`s icon on the web server.
See parameter ExternalAppUrl.
-
{ThemeBackColor}, {ThemeBorderColor}, {ThemeFontColor}
The color of background, borders and font respectively, depending on the theme
(specified in the setting StyleThemeName).
By default, the following values are used (from the blue theme):
{ThemeBackColor} = #5fa2dd
{ThemeBorderColor} = #5fa2dd
{ThemeFontColor} = #f0f0f0
In the default template, these colors are used for the "Open" button, which opens an anonymous url link in the variable {ShortOrFullUrl}.
Each of email templates has it`s own list of placeholders which can be used only with this specific template:
-
main-tpl.html
-
{main-content}
- replaced with the actual mail text, different for each of notification emails.
Localization paratemers which are used as email bodies usually contain "Body" word in their names.
- {action-block} - used for emails with action buttons. Currently used for email with user account activation link.
-
ChangesNotification\tpl.html
- {dataRowStart} - indicates beginning of the data row template.
- {dataRowEnd}- indicates ending of the data row template. Everything between {dataRowStart} and {dataRowEnd} placeholders will be used as a row template.
- {username} - Name of the user who done the action.
- {date} - Date/time of the action.
- {type} - Action type. E.q. download, upload, view, etc.
- {path} - Path to the file/folder in application notation.
- {url} - Url to the file/folder in the application.
- {more-info} - Additional information about the action. It could be source of the file for the copy operation or file size for upload operation.
- {public} - Replaced with the checkmark (✔) for actions made via public link page, and with space otherwise.
- {webdav} - Replaced with the checkmark (✔) for actions made via WebDAV, and with space otherwise.
-
PublicEmail\tpl.html
You can change email subjects and messages. For example, you can include your company name to the subject and company logo to the message body.
Here are settings (Admin Panel -> Settings tab) related to customization of email notifications:
-
EMailFromName - Common setting to set "From" name in the email (Used in "Send email", "Watch for modifications" and all other email notifications).
Default value is "Web files manager".
-
TplForAddUserNameToDisplaySenderNameWhenSendEmail - Template string added to the "From" name of the email message when user send email from HTTP Commander using "Share" -> "Send mail" feature. Does not applies to notification emails.
Default value is "Email from {0}".
-
MailSubjectOfWatchedChanges - Subject of mails with notification of changes observed for files, folders.
Default value is "Information about the file, folders changes".
Here are localization parameters (Admin Panel -> Localization tab) related to customization of email notifications.
To change value of localization parameter: login under admin account, open AdminPanel, Localization tab, select needed language from dropdown box and search (Ctrl+F) for needed parameter.
Here we list parameters with default values for English localization.
-
AnonymousSendEmailSubject - Subject of email with information about public link visitor activity.
Default value is "Visitors activity of public folder".
-
AnonymousSendEmailUploadBody - Body of email with information about public link visitor activity..
Default value is "The following files were uploaded to your public folder {0}:{1}.".
-
AnonymousSendEmailDownloadBody - Body of email with information about public link visitor activity.
Default value is "The file {0} was downloaded from your public folder {1}.".
-
AnonymousSendEmailZipDownloadBody - Body of email with information about public link visitor activity.
Default value is "The whole content of public folder {0} was downloaded in a ZIP archive.".
-
ServerEmailMsgProcessedFilesSubject - Subject of email with information about users activity.
Default value is "Uploaded/Modified/Downloaded/Created/Deleted/Shared files/folders".
-
ServerEmailMsgUploadFilesTitle - String template for action.
Default value is "uploaded".
-
ServerEmailMsgModifyFilesTitle - String template for action.
Default value is "modified".
-
ServerEmailMsgDownloadFilesTitle - String template for action.
Default value is "downloaded".
-
ServerEmailMsgCreateFilesTitle - String template for action.
Default value is "created".
-
ServerEmailMsgDeleteFilesTitle - String template for action.
Default value is "deleted".
-
ServerEmailMsgCreatePublicFilesTitle - String template for action.
Default value is "shared".
-
ServerEmailMsgProcessedFilesBody - Body of email with information about users activity.
Default value is "The following files/folders were {0} by {1}:{2}.".
-
ServerEmailMsgPasswordRecoverSubject - Subject of email for password recovery.
Default value is "Password recovery".
-
ServerEmailMsgPasswordRecoverBody - Body of email for password recovery.
Default value is "You requested to recover your password in Web File Manager. Your password was reset. If you believe this is an error, simply ignore this letter, but be aware that your password has been changed.
User name: {0}
New password: {1}".
-
ServerEmailMsgUserNameRecoverSubject - Subject of email for username recovery.
Default value is "Username recovery".
-
ServerEmailMsgUserNameRecoverBody - Body of email for username recovery.
Default value is "You requested to recover your name in Web File Manager.
User name: {0}".
-
ServerEmailMsgUserActivationSubject - Subject of email for user activation.
Default value is "Account activation".
-
ServerEmailMsgUserActivationBody - Body of email for user activation.
Default value is "Account ({0}) activation is required.
To activate your account, please click on the following link: {1}".
-
ServerEmailMsgUserRegisteredSubject - Subject of email for user registration.
Default value is "User registered".
-
ServerEmailMsgUserRegisteredBody - Body of email for user registration.
Default value is "You are successfully registered in Web File Manager.
User name: {0}".
-
ServerEmailMsgUserRegisteredForAdminsBody - Body of email sent to administrator about user registration .
Default value is "<h4>New user has been registered</h4>
<strong>User name</strong>: {0}<br />
<strong>Email</strong>: {1}<br />
<strong>Date</strong>: {2}<br />
<strong>Extra info</strong>: {3}<br />".
-
ServerSendEmailInfo - String added to the message body of email sent by the user from the application (Share->Send Emmail).
Default value is "Author specified their email as {0}. Use ONLY this email address to reply.".