Skip to main content link. Accesskey S
  • Anonymous
  • Log on
  • Help
  • IBM logo
  • IBM Connections wiki
  • All Wikis
  • Home
  • Community Articles
  • Product Documentation
  • Learning Center


Search

Advanced Search

Categories

Tag Cloud

  • 1.0
  • 1.0.x
  • 2.0
  • 2.0.1
  • 2.0.1.1
  • 2.0_media
  • 2.5
  • 2.5_deployment
  • 2.5_media
  • 2.5_performance
  • 3
  • 3.0
  • 3.0.1
  • 3.0.1_media
  • 3.0_media
  • 3_deployment
  • 8.1.1
  • 8.2
  • activities
  • administrators
  • api
  • best_practices
  • blogs
  • bookmarks
  • business_card
  • cluster
  • communities
  • community
  • community_manager
  • connections
  • connections_3
  • connections_301
  • customization
  • customize
  • customizing
  • demos
  • deploying
  • deployment
  • deployments
  • developers
  • dogear
  • Domino
  • Edge server
  • education
  • error messages
  • files
  • forums
  • getting_started
  • Help
  • home
  • home_page
  • homepage
  • how-to
  • HTTP server
  • ibm
  • index
  • installation
  • integration
  • iOS
  • ipad
  • iWidget
  • J2EE
  • javadoc
  • lc3.0
  • learning
  • lotus-connections
  • mml
  • mobile
  • Notes
  • performance
  • person_card
  • Portal
  • portlet
  • portlet_factory
  • profiles
  • proxy server
  • quickr
  • Redbooks
  • rest
  • reverse proxy server
  • Sametime
  • scenarios
  • search
  • security
  • self-paced
  • SSO
  • tags
  • test_infrastructure
  • troubleshooting
  • tuning
  • video
  • VideoFest
  • videos
  • WAI
  • WAS
  • web_seminar
  • WebAppIntegrator
  • WebSphere
  • widgets
  • wikis
InformationInformation
You are currently viewing machine translated content. IBM translation might be available. Click IBM Translated Product Documentation to see what is available.X


Home > IBM Redbooks: Customizing IBM Connections 3.0.1 > 3.2 Adding a tab to the IBM Connections Home page
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

3.2 Adding a tab to the IBM Connections Home page 

expanded Abstract
collapsed Abstract
No abstract provided.
Previous | Next

You can add tabs to the IBM Connections Home page to provide additional information and links. For example, if you use the IBM Connections Home page as the landing page for your intranet, you can include tabs for internal or external web pages on the Home page. You can also add links to IBM Connections applications.

By default, the Home page has three tabs with these labels, as show in the screen capture:
  • Getting Started
  • The Updates tab provides a summary view.
  • The Search tab provides the federated search feature.



The tabs that display on the Home page are determined by a template that is located in source application files. The template can be customized by adding the necessary HTML to create the tab. The location of the template is in the "installedApps" directory of the WebSphere Application Server on which Home page is installed.

Adding a tab is essentially a simple HTML writing exercise. You create a standard HTML link that points to the desired location and wrap this link inside a list item tag. The CSS included in the page takes care of all the necessary styles for the elements and makes the tab look consistent with the other tabs. For example, the following HTML snippet produces a tab labeled IBM that links to http://www.ibm.com:

<li id="widgetTab" style="${widgetTabStyle}"><a href="http://www.ibm.com" role="button" aria-pressed="false">IBM</a></li> 


Adding many tabs can alter the layout of the page or hide other elements on the page, such as the search field. If you want is to provide multiple links from a central place, consider adding one tab that loads a page containing all the links. This method allows you to categorize the links and keep the user interface consistent. Alternatively, you could add a menu item to the navigation bar. For more information about adding a menu, see 2.1 Matching the user interface to your company brand and policies and search for Adding a link or a menu to the navigation bar.

Before you begin

Turn on customization debugging capability so that you can view your changes without having to restart the IBM Connections server. For more information about customization debugging, see 1.2 IBM Connections customization variables.

Procedure

In our example, we add a tab that links to another page outside the IBM Connections Home page.
    1. Copy the default file to the customization directory:
      a. Navigate to the application source directory <WAS_home>\profiles\<profile_name>\installedApps\<cell_name>\Homepage.ear\homepage.war\web\jsp\common\. For more information about the source directories, see 1.3 Source application files.
      b. Copy the tabs.jspf file to the Home page customization directory, <customizationDir>\homepage\web\jsp\common\. For more information about the customization directory, see 1.2 IBM Connections customization variables.
    2. Add a tab to the tabs.jspf template:
      a. Navigate to <customizationDir>\homepage\web\jsp\common\.
      b. Open your copy of tabs.jspf with a text editor.
      c. Copy the lines that appear in this sample <%-- IBM Tab --%> in this example to your copy of tabs.jspf. Add the lines after the section for the Widgets Tab and before the Admin tab.
      Tip
      : Adding your tabs to the Home page before the Admin tab section ensures consistency with the help content. Help identifies the Administration tab as the last tab in the list.
      This tabs.jspf file has a section with definitions for four tabs. The first three tabs are the default tabs that display for non-administrator users. The tab labeled <%-- Admin Tab --%> is the Administration tab that displays when a user with the necessary privileges logs in to the Home page application.

      <!-- Getting Started Tab -->
      <% if (selected.equalsIgnoreCase("gettingStarted")) {%>
      <li id="gettingStartedTab" class="lotusSelected"><a href="javascript:void(0);" role="button" aria-pressed="true"><core:message label="${gettingStarted}"/></a></li><% } else { %>
      <li id="gettingStartedTab"><a href="${pageContext.request.contextPath}/web/gettingStartedPage.action" role="button" aria-pressed="false"><core:message label="${gettingStarted}" 
      /></a></li><% } %>
      <%-- Updates Tab --%>
      <% if (selected.equalsIgnoreCase("updates")) {%>
      <li id="mainTab" class="lotusSelected"><a href="javascript:void(0);" role="button" aria-pressed="true"><core:message label="${updates}"/></a></li><% } else { %>
      <li id="mainTab"><a href="${pageContext.request.contextPath}/web/displayHomePage.action" role="button" aria-pressed="false"><core:message label="${updates}" /></a></li><% } %>
      <%-- Widgets Tab --%>
      <% pageContext.setAttribute("widgetTabStyle", "display:none;"); %>
      <c:if test="${ sessionScope.isWidgetTabEnabled }"><%pageContext.setAttribute("widgetTabStyle", "display:block;"); %>
      </c:if><% if (selected.equalsIgnoreCase("widgets")) {%>
      <li id="widgetTab" class="lotusSelected" style="${widgetTabStyle}"><a href="javascript:void(0);" role="button" aria-pressed="true"><core:message label="${widgets}"/></a></li><% } else { %>
      <li id="widgetTab" style="${widgetTabStyle}"><a href="${pageContext.request.contextPath}/web/widgets" role="button" aria-pressed="false"><core:message label="${widgets}"/></a></li><% } %>

      <%-- IBM Tab --%>
      <li id="newTab" style="${widgetTabStyle}"><a href="http://www.ibm.com" role="button" aria-pressed="false">New Tab</a></li>

      <%-- Admin Tab --%>
      <c:if test="${ sessionScope.isAdmin }"><% if (selected.equalsIgnoreCase("admin")) {%>
      <li id="adminTab" class="lotusSelected"><a href="javascript:void(0);" role="button" aria-pressed="true"><core:message label="${admin}"/></a></li><% } else { %>
      <li id="adminTab"><a href="${pageContext.request.contextPath}/admin/openAdminPage.action" role="button" aria-pressed="false"><core:message label="${admin}"/></a></li><% } %>
      </c:if></ul><script type="text/javascript">dojo.require("lconn.core.aria.Toolbar");
      new lconn.core.aria.Toolbar("pageTabs");
      </script>

      d. Save the tabs.jspf file.
    3. Test your changes:
      a. Clear your browser cache.
      b. Navigate to the Home page to view your changes and test your tab.
    4. Make your changes available to others by updating the value of the versionStamp configuration property. For more information, see 1.4 Publishing customizations with the wsadmin tool.

The following figure shows the result. A new tab titled New Tab is added.



Parent topic: 3.0 Customizing the Home page

expanded Article information
collapsed Article information
Category:
IBM Redbooks: Customizing IBM Connections 3.0.1
Tags:
Redbooks

This Version: Version 1 November 21, 2011 11:10:06 AM by Amanda J Bauman  IBMer

expanded Attachments (0)
collapsed Attachments (0)

 


expanded Versions (1)
collapsed Versions (1)
Version Comparison     
Version Date Changed by               Summary of changes
This version (1) Nov 21, 2011 11:10:06 AM Amanda J Bauman  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedSubscribe to RSSHelpAbout
  • All Lotus and WebSphere Portal wikis
  • IBM developerWorks
  • IBM Software support
  • IBM Social Business User Experience Blog
  • IBMSocialBizUX on Twitter
  • IBMSocialBizUX on Facebook
  • Lotus product forums
  • IBM Social Business UX blog
  • IBM Collaboration Solutions
  • Recently added feedRecently added
  • Recently edited feedRecently edited
  • Recently added comments feedRecently Added Comments
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Contact IBM
  • IBM Terms of use
  • Wiki terms of use