C H A P T E R 3 |
Branding the Developer Portal |
This chapter describes how to brand the Developer 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 Developer Portal interface more closely conform to your corporate image.
Tip - The files listed in TABLE 3-1 are used to present the pages of the Developer 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. |
The following topics are presented:
The banner is a graphic that is displayed at the top of each page. To use a different logo graphic or change the top banner in other ways, edit the template used to build the page:
1. Open the $CDS_HOME/deployment/deployment-name/.../tpl/_tpl_main.jsp file.
Note - Use caution when editing this file. A mistake could cause pages to render incorrectly or not render at all. |
2. Find the table containing the banner image (v_banner001.gif) and replace the entire table with your customized table.
The Developer Portal does not have a default footer. You can add a footer, if desired, by editing the template used to build the page:
1. Open the $CDS_HOME/deployment/deployment-name/.../tpl/_tpl_main.jsp file.
Note - Use caution when editing this file. A mistake could cause pages to render incorrectly or not render at all. |
2. Find the comment <!-- Main Region Ends --> at the end of the page and after the comment add a table that contains your footer.
To change the title of the main page, edit the $CDS_HOME/deployment/deployment_name/localization/DevPortalMessages.properties file and replace the value of the following property with the title that you require:
default.app.title=Sun Java [TM] System Content Delivery Server - Developer Portal
To change the logo graphic, replace $CDS_HOME/deployment/deployment-name/.../developer/media/v_banner001.gif with your company logo. If you plan to use the existing banner source code, the image size is 215x25 pixels. For proper display, provide a replacement logo with the same dimensions.
Note - Changing the logo changes the logo display throughout the Developer Portal. |
To simplify branding, the layout of the Developer Portal is controlled by a style sheet, $CDS_HOME/deployment/deployment-name/.../developer/styles/m4_developer.css. The background and font colors are defined in the style sheet. Edit the style sheet to change the colors and fonts for the Developer Portal. You can use any text editor to edit this file.
The Developer Portal provides a placeholder for a license agreement that you can provide to specify the terms and conditions that developers must accept to submit content to your server. Replace the placeholder with your license agreement.
Provide a license agreement using one of the following methods:
To change the text for the links to the license agreement, edit the DevPortalMessages.properties file located in the $CDS_HOME/deployment/deployment_name/localization directory and set the value of the following property to the string of your choice:
agreement.name=Wireless, Inc. Content Developers Agreement
Developers who want to submit content to Content Delivery Server can create a developer account by registering through the Developer Portal. When the registration completes successfully, a confirmation page is displayed. You can configure the title and the message for this page by setting the following properties in the DevPortalMessages.properties file located in the $CDS_HOME/deployment/deployment_name/localization directory:
When when a developer clicks the Help link from any page in the Developer Portal, a PDF file that describes how to submit content to Content Delivery Server is presented. To customize the information presented, do one of the following options:
Copyright © 2008, Sun Microsystems, Inc. All Rights Reserved.