Cognos protal Logo 自定义

浏览: 2306

Cognos protal Logo 自定义

QQ图片20150505103057.png

 

  •  前言

在实际的项目运用中,我们需要将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文件,不知道是否全部这样,实际项目中多测试下吧。

推荐 0
本文由 H_Elsker 创作,采用 知识共享署名-相同方式共享 3.0 中国大陆许可协议 进行许可。
转载、引用前需联系作者,并署名作者且注明文章出处。
本站文章版权归原作者及原出处所有 。内容为作者个人观点, 并不代表本站赞同其观点和对其真实性负责。本站是一个个人学习交流的平台,并不用于任何商业目的,如果有任何问题,请及时联系我们,我们将根据著作权人的要求,立即更正或者删除有关内容。本站拥有对此声明的最终解释权。

0 个评论

要回复文章请先登录注册