C H A P T E R 1 |
Branding the PC-Based Subscriber Portal |
This chapter describes how to brand the PC version of the Subscriber Portal component of Sun Java System Content Delivery Server. You can change any or all of the files described in the following table to make the Subscriber Portal interface more closely conform to your corporate image.
Tip - The files listed in TABLE 1-1 are used to present the pages of the Subscriber Portal. Changes are displayed when a page is refreshed. You might want to edit copies of the files, then replace the original files with the changed files after you are sure there are no errors. |
This section presents the following topics:
To make changes to the version of the Subscriber Portal that subscribers access from their mobile devices, see Chapter 2. To replace the Subscriber Portal with your own subscriber interface, see information on the Subscriber API in the Sun Java System Content Delivery Server Customization Guide.
The banner is a graphic that is displayed at the top of each page. The default banner is a blue bar with the words “Wireless, Inc.” To change the banner, follow these steps:
1. Open $CDS_HOME/deployment/deployment-name/.../tpl/_tpl_main.jsp.
2. Search for the string wireless.inc-masthead.gif and replace it with the name of the image file that you want to use.
If the image is not localized, use the image path variable img_url. If the image is localized, use the image path variable localized_image_url. The following code example shows the path for an image that is localized.
<td width="377" height="87"> <img src="<%=img_url%>/wireless.inc-masthead.gif" width="283" height="45"> </td> |
If the new image is not localized, store the image in the $CDS_HOME/deployment/deployment-name/.../static/media directory. If the image is localized, store the image in the directory specified for the localized.path.image_url property in each language-specific SubscriberPortalLocaleResource.properties file.
The footer is text or graphics that appear at the bottom of each page. The default footer is blank. To add a footer, follow these steps:
1. Edit $CDS_HOME/deployment/deployment-name/.../tpl/_tpl_main.jsp.
2. Search for the statement <!-- BEGIN 3rd Row -->.
3. Add the text or images that you want to appear at the bottom of each page in the second column of this row in the table.
If an image is not localized, use the image path variable img_url. If an image is localized, use the image path variable localized_image_url. The following example shows the path for images that are not localized.
If an image is not localized, store the image in the $CDS_HOME/deployment/deployment-name/.../static/media directory. If an image is localized, store the image in the directory specified for the localized.path.image_url property in each language-specific SubscriberPortalLocaleResource.properties file.
To change the title of the main page, edit the $CDS_HOME/deployment/deployment-name/localization/SubscriberPortalLocaleResource.properties file. Replace the value of the desktop.common.applicationTitle property with the title that you require, for example:
desktop.common.applicationTitle=Test Subscriber Portal
If you have locale-specific resource files, set the property in each file.
The text shown on the pages of the Subscriber Portal is read from the $CDS_HOME/deployment/deployment-name/localization/SubscriberPortalLocaleResource.properties file. To change messages or the labels for the fields, edit the strings in this file. The properties used for the PC-based Subscriber Portal are prefixed with desktop, for example, desktop.common.applicationTitle.
If you have locale-specific resource files, edit the strings in the files for the locales that you use.
Modify the following files in the $CDS_HOME/deployment/deployment-name/dynamic_banner directory to change what is presented to the subscriber on the home page:
To change the pages, for each file follow these steps:
1. Edit the file and replace the body of the table with valid HTML statements to create the page that you want.
Keep the following points in mind while editing the table:
2. When you complete your changes, save the file.
The new version of the file is used the next time the page is referenced by a subscriber.
The pages can also be presented in different languages:
1. Copy each of the files and add the language code to the name.
For example, for a version of a file in French, create a file named modelloggedin_fr.html.
2. Make the changes that you want to each file.
3. Edit each language-specific $CDS_HOME/deployment/deployment-name/localization/SubscriberPortalLocaleResource.properties file and set the following properties to the names of the new files:
Buttons on the Subscriber Portal that are localized, such as Log In and Search, are images in the $CDS_HOME/deployment/deployment-name/.../static/media/language-code directories. You can replace these buttons with images of your choice by replacing the existing files. To provide these buttons in a different language, see Section 4.1.3, Providing Localized Templates and Images.
The following table describes the buttons and their associated images.
Buttons on the Subscriber Portal that are not localized, such as arrow buttons, are images in the $CDS_HOME/deployment/deployment-name/.../static/media/common directory. You can replace these buttons with images of your choice. The following table describes the buttons and their associated images.
To simplify branding, the layout of the Subscriber Portal is controlled by a style sheet, $CDS_HOME/deployment/deployment-name/.../styles/subscriber.css. Background and font colors are defined in the style sheet. Edit the style sheet to change the colors and fonts for the Subscriber Portal. Use any text editor to edit this file.
The Subscriber Portal provides a placeholder for a license agreement that you can provide to specify the terms and conditions that users must accept to access and download content from your server. Replace the placeholder with your license agreement using one of the following methods:
If you choose to provide a different file, edit the $CDS_HOME/deployment/deployment-name/localization/SubscriberPortalLocaleResource.properties file and set the value of the desktop.fileInclude.userAgreement property to the location of your license agreement, for example:
desktop.fileInclude.userAgreement=/legal/cds/terms-conditions.html
The default text for the link to the license agreement is “Wireless, Inc User Agreement.” To change the text for the link, follow these steps:
1. Open the $CDS_HOME/deployment/deployment-name/localization/SubscriberPortalLocaleResource.properties file.
2. Replace the value of the desktop.signup.agreementLink property with the string that you require, for example:
desktop.signup.agreementLink=Terms and Conditions
Copyright © 2008, Sun Microsystems, Inc. All Rights Reserved.