IBM Support

How do you configure a Custom Logo in Cognos Connection?

Troubleshooting


Problem

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.

[{"Product":{"code":"SSEP7J","label":"Cognos Business Intelligence"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Cognos Connection","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"10.2;10.2.1;10.2.2","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
15 June 2018

UID

swg21339054