IBM R1 manual Replacing the application logo, Learning Management System server, Delivery server

Page 42

To replace graphics:

Replace the existing image file in the [serverName]>images directory with the image you prefer to use. Retain the original image’s file name.

Replacing the application logo

The standard IBM Lotus Learning Management System logo which displays in the header of the application pages is included using custom tags. This section defines how the following servers specify the graphic files and alternate text they use for their logos:

Learning Management System server

Delivery server

Learning Management System server

The graphic to use as the application logo for the Learning Management System server is defined in application source code that is not editable. You cannot access this code. The Java code triggered by the lms:logo tag retrieves the “lmsBrandingLogo.gif” graphic from either the standard lmm>graphics directory or the customization set subdirectory, if the application has been set up to use custom images.

The adminHeader JSP includes the lms:logo tag as follows:

<td width="93%" class="ancLogoPlacement" valign="top"> <a href="#navskip">

<lms:img src="images/px.gif" altKey="header.skipToMainContent"/> </a>

<lms:logo altKey="image.alt.logo" />

</td>

To replace the graphic used for the logo on the Learning Management System server, follow these steps:

1.Rename the replacement graphic to “lmsBrandingLogo.gif.”

2.Rename (or remove) the existing lmsBrandingLogo.gif file.

3.Add the graphic file by copying it to the [serverName]>images directory.

If you are adding the logo graphic to a customization set, copy it to the [serverName]>customizationSetName>images directory. See “Applying customization sets.”

The altKey attribute of the lms:logo tag defines the text to display as alternate text for accessibility compliance. The value for the key is the name of the .properties file resource key to retrieve and display as the alternate text for the image. The altKey attribute above contains image.alt.logo. The English-version ApplicationResources.properties file for the lmm server contains the following resource key:

image.alt.logo = IBM Lotus Learning Management System

If you change the logo to display a custom company logo, you may also want to change the image.alt.logo resource key in the .properties file to contain a text string that is compatible with the change.

Delivery server

The Delivery server includes the logo using the delivery:logoURL tag. The Java code triggered by this tag takes a parameter that defines the graphic file to use as the logo. You can supply this parameter by editing the resource attribute of the logoURL tag.

The system.jsp file includes the delivery:logoURL tag as follows:

Chapter 5: Customizing JavaServer Pages 37

Image 42
Contents Customization Guide Disclaimer Licensed Materials Property of IBMList of Trademarks Page Table of Contents Customization sets Creating a tabIndex Customizing the user interface Disclaimer and a word about conventions Acronyms and abbreviationsAcronym or What it stands for Abbreviation Page Chapter Changing settings through the user interface or XML Changing settingsPage Chapter Controlling access to features through permissions To add a role to the systemTo automatically assign a role to a user To modify permissions settings for an existing roleTo assign a role to a user To explicitly assign a role to a userControlling access to features Page Chapter Customizing Help Anatomy of a Help topicScript Mosaic-bg Background-repeat repeat-xScript Head Editing an existing Help topic Replacing a context-sensitive Help topicLmsform action=/prefSubmit.do % Adding your own Help topic HREF=shnotifications.html target=topNotifications/Abr HREF=shenrolled.html target=topEnrolled courses/AbrChapter Customizing JavaServer Pages OverviewAnatomy of a TLD file LMS JSP tag librariesServerNameWEB-INFtld Referencing the url tag in a JSP String formName = request.getParameterformNameDefining the url tag in the TLD file Rtexprvaluetrue/rtexprvalue Attribute Tag ServerNameWEB-INFclassescomlotuselearntaglibLearning Management System server Anatomy of a JSPDefining a page as a JSP Localizing page content Including tag library descriptor filesReferencing Struts tags Including JavaScript source code Including the JSPs that comprise the main templateDiv class=formBoxPositionInner Td class=formBoxTitleBg colspan=3 valign=middle nowrapLogicnotPresent LogicnotMatch DivLogicnotPresent logicpresent name=invalidForm LogicpresentDelivery server Localizing page textDisplaying errors to the user Script language=JavaScript src=js/delivery.js/scriptPopulating a frameset in a JSP Defining resizable frames Making global changes Frameset HtmlApplying customization sets Changing the application styleLanguage-version Editing existing CSS filesServerNamecsslanguageCodebrowserType Browser-versionChanging the font size or font style of the application Adding your own CSS filesReplacing CSS files @import urlmyStyles.cssUpdating page text ServerNameWEB-INFclassesresourcesserverNamepropertiesAdding and replacing graphics Titlelmsmessage key=application.title //titleApplication.title = IBM Lotus Learning Management System Lmslinklmsimg src=images/name.gif… //lmslinkImage.alt.logo = IBM Lotus Learning Management System Replacing the application logoLearning Management System server Delivery serverDeliverylogoURL resource=images/myCompanyLogo.gif Changing individual JSPsReplacing a reference to a CSS style Changing the style of an individual JSPEditing existing JSP tags Changing the functionality of an individual JSPSpecifying the next page to display Canceling the submission of a form Submitting a formEditing form Bean values with the lmshidden tag Lmshidden property=userEvent Removing JSP tagsLmshidden name=%=formName% property=unmodifiedKeywords Custom fieldsIt then checks to see if its a text box type field LogicnotPresent Logicequal Page Adding Ldap attributes to User Search pages Chapter Customizing SearchCustomizing user searches Attribute name=HealthPlanChoice type=java.lang.StringHealthPlanChoice = Employees Health Plan Removing fields from User Search pagesAdding custom fields to the Offerings Catalog Customizing Offerings Catalog searchesCustomizing course management and resource searches Removing fields from Offerings Search pagesRemoving fields from the Search pages Chapter Customization sets Creating a customization setLMM De en etc. SalesCS De en EtcPage Attribute Name Type Modified Size Path Customization sets Page Chapter Creating a tab UsersUsers.jsp @ taglib uri=/WEB-INF/tld/lms.tld prefix=lms %Td width=1 valign=top Page Users.rosterUsers.subtitle = Roster Users Navigation.xml Users.rosterUsers.search Users.rosterUsers.search.confirmTrail TrailManageProfiles TrailTrail TrailManageRoles Trail TrailManageUsersTarget tag struts action-mapping Content tag JSP file namesName tag page names and resourced text Label tag breadcrumbsUsers.rosterUsers.search.confirm Permissions tag permission to display Adding custom permissionsTitle tag title bar text HelpPage tag context-sensitive HelpName UpdatetimeOid Permid0000000000000000PERM 0000000000003000PERM 0000000000009300PERM Example Copy the JSPsPage Creating a tab END Index Content Area Creating a tab Div Second linked page customGoodbye.jsp looks like this Page Customtab.html Create Help filesCustomtabb.html Add permissions to the LMS database Select Maxpermid from PermissionEdit ApplicationResources.properties Edit navigation.xml NavigationNamestudenthome/name Assign permissionsCreating a tab Page Index