Cognos protal Logo 自定义
在实际的项目运用中,我们需要将Cognos默认的CognosConnection这个Logo替换掉,一般是替换为公司的logo,这篇文章将论述如何修改默认的Logo。
对system.xml 文件中的Custom OEM headers部分进行修改,修改的具体代码如下:
<paramname="OEM">
<!--
Specify custom Cognos Connection / Cognos Viewerleft side header here in the form of XHTML snippets. Custom headers can be style-specific.
Example: -->
<customHeader showContext="true"contextDelimiter=" - ">
<stylestyleFolderName="business">
<table>
<tr>
<td><imgsrc="../skins/business/branding/telenor.gif"/></td>
<tdclass="headerTitle"style="padding-right:2px;white-space:nowrap"> Telenor BI Portal</td>
</tr>
</table>
</style>
<stylestyleFolderName="classic">
<table>
<tr>
<td><imgsrc="../skins/classic/branding/telenor.gif"/></td>
<tdclass="headerTitle"style="padding-right:2px;white-space:nowrap"> Telenor BI Portal</td>
</tr>
</table>
</style>
<stylestyleFolderName="contemporary">
<table>
<tr>
<td><imgsrc="../skins/contemporary/branding/telenor.gif"/></td>
<tdclass="headerTitle"style="padding-right:2px;white-space:nowrap"> Telenor BI Portal</td>
</tr>
</table>
</style>
<stylestyleFolderName="modern">
<table>
<tr>
<td><imgsrc="../skins/modern/branding/telenor.gif"/></td>
<tdclass="headerTitle"style="padding-right:2px;white-space:nowrap"> Telenor BI Portal</td>
</tr>
</table>
</style>
<stylestyleFolderName="corporate">
<table>
<tr>
<td><imgsrc="../skins/corporate/branding/telenor.gif"/></td>
<tdclass="headerTitle"style="padding-right:2px;white-space:nowrap"> Telenor BI Portal</td>
</tr>
</table>
</style>
<stylestyleFolderName="presentation">
<table>
<tr>
<td><imgsrc="../skins/presentation/branding/telenor.gif"/></td>
<tdclass="headerTitle"style="padding-right:2px;white-space:nowrap"> Telenor BI Portal</td>
</tr>
</table>
</style>
</customHeader>
<!-- -->
</param>
需要注意的是,Cognos10版本中默认有6中style:Business、Classic、Contemporary、Corporate、Modern、Presentation,这里最好把六种全部都写上,这样可以保证用户无论使用哪种style都可以看到同样的logo。
这里知道了要修改System.xml 文件内容,那么System.xml文件在什么地方呢,cognos10中文件的路径有多处,用处各不同
c10_location/templates/ps/system.xml (不知用在哪里)
c10_location/templates/ps/portal/system.xml (Cognos connection页)
c10_location/templates/ps/qs/system.xml (Query Studioyem )
c10_location/templates/ps/cogadmin/system.xml (不在用在哪里)
如果部署了集群,我的发现是system.xml只在application server服务器上才有,在gateway服务器上没有system.xml文件,不知道是否全部这样,实际项目中多测试下吧。