IBM Support

How do you configure a Custom Logo in Cognos Connection?

Technote (troubleshooting)


Problem(Abstract)

How do you add a logo or any other image to the left of the user's name in the Cognos Connection banner?
How do you remove the "Cognos Connection" text?

Resolving the problem

You will need to add a reference to the image that you want to be displayed in the tag. This can be found under OEM in the portal's system configuration file. Here is an example of the code that is added to the system.xml file located in the (cognos)\templates\ps\portal directory.

<!-- Custom OEM headers -->
<param name="OEM">
    <customHeader showContext="true" contextDelimiter=" - ">
        <style styleFolderName="corporate">
            <table style="background-color:#ffffff">
                <tr>
                    <td><img src="../skins/corporate/branding/my_logo.gif"/></td>
                    <td class="headerTitle" style="padding-right:2px;white-space:nowrap">My company</td>
                </tr>
            </table>
        </style>
        <style styleFolderName="classic">
            <table style="background-color:#cccccc">
                <tr>
                    <td><img src="../skins/classic/branding/my_logo.gif"/></td>
                    <td class="headerTitle" style="padding-right:2px;white-space:nowrap">My company</td>
                </tr>
            </table>
        </style>
    </customHeader>
</param> Steps to add a custom Logo to the portal: Make a backup of the (Cognos)\templates\ps\portal\system.xml file. Open the (Cognos)\templates\ps\portal\system.xml file in a text or XML editor. Find the string "Custom OEM Headers" in the file. Add in your own section, or edit the example section included in the file. If editing the example, ensure that this example section is not commented out within your XML file by removing the following two bolded sections: <!-- Custom OEM headers -->
<param name="OEM">
<!--
Specify custom Cognos Connection / Cognos Viewer left side header here in
the form of XHTML snippets.  Custom headers can be style-specific.
Example:
    <customHeader showContext="true" contextDelimiter=" - ">

AND:

   </customHeader>
-->
</param>To remove the "Cognos Connection" string from the header, modify the tag from: <customHeader showContext="true" contextDelimiter=" - "> To:     <customHeader showContext="false"  contextDelimiter=" - ">Save the (Cognos)\templates\ps\portal\system.xml with your modifications. Start or restart the Cognos services and ensure you clear your browser cache.

Document information

More support for: Cognos Business Intelligence
Cognos Connection

Software version: 10.2, 10.2.1, 10.2.2

Operating system(s): AIX, HP-UX, Linux, Solaris, Windows

Reference #: 1339054

Modified date: 15 February 2017


Translate this page: