Customize the Customer Site pages
Logo customization
Simply replace the logo.png file located in QlmCustomerSite/images.
As of QLM v12, you can customize the logo by setting the server property customerSiteLogo.
Title Customization
As of QLM v12, you can customize the title by setting the server property customerSiteTitle.
Pages customization
To customize the pages, you can edit the aspx pages located in QlmCustomerSite. Here are some basic rules to follow:
- Before editing these files, you should always create a backup.
- Never modify the ID of a field.
- Never remove a field
Localize the Customer Site Pages
In QLM v11+, the QlmCustomerSite pages are localized in different languages.
If you are upgrading from an earlier version of QLM, the URL to access the localized pages has changed from:
https://<yourserver>/qlmcustomersite/index.html
to:
https://<yourserver>/qlmcustomersite/default.aspx.
If you elect to use the localized pages, you can no longer customize the text of each page as the localized text is retrieved dynamically from resource DLLs.
If you need to customize the text of these pages, you will need to turn off localization and create your own pages with customized text.
Single Language Customization
If you only want to support a single language, you can simply turn off the localization feature and customize the content of each page.
To turn off localization, set the customerSiteUseLocalizedCustomPages server property to false (QLM 12).
For QLM 11, edit the applicationSettings / QlmCustomerSite.Properties.Settings of the QlmCustomerSite web.config file as follows:
<setting name="useLocalizedCaptions" serializeAs="String">
<value>False</value>
</setting>
Multilingual Customization
If you want to customize the text of the QlmCustomerSite pages and would like to support multiple languages, you can do so by following the procedure below.
Configuration Changes
Set the server property customerSiteUseLocalizedCustomPages to true (QLM v12).
For QLM v11, edit the applicationSettings / QlmCustomerSite.Properties.Settings of the QlmCustomerSite web.config file as follows:
<setting name="useLocalizedCaptions" serializeAs="String">
<value>False</value>
</setting>
<setting name="useLocalizedCustomPages" serializeAs="String">
<value>True</value>
</setting>
Page Localization
For each aspx page, you must create a language specific page and then customize its content.
For example, to support French and English:
- Copy default.aspx to default_en.aspx
- Copy default.aspx to default_fr.aspx
- Copy QlmWebActivation.aspx to QlmWebActivation_en.aspx
- Copy QlmWebActivation.aspx to QlmWebActivation_fr.aspx
- Edit the content of the *_fr.aspx pages and translate the text as desired.
- Repeat the steps above for each language and each page.
- Note that for each page you customize, you must retain the original page and create a language specific page, even for english, which is the default language.
The language codes to suffix each page name are:
Language | Code |
English | en |
French | fr |
German | de |
Italian | it |
Japanese | ja |
Portuguese | pt |
Spanish | es |
Swedish | sv |
You can also set the initial language of the page by adding the is_language parameter. Example:
https://<yourserver>/qlmcustomersite/default.aspx?is_language=fr
Comments
0 comments
Article is closed for comments.