Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

KM Document iView - index.html and main.css not properly displayed

Hello,

as a test we have put two files in the /documents repository in KM :

a) index.html

...
<head>
<link rel="stylesheet" type="text/css" href="./main.css"/>
</head>
...
<table width="92%" bgcolor="#FFFFFF">
  <tr align="left" valign="top"> 
    <td> </td>
    <td colspan="5"><table width="100%" border="0" cellpadding="5" cellspacing="0">
        <tr valign="middle"> 
          <td width="85" bgcolor="#C7D9E9"> <p><b>Top Links</b></p></td>
          <td width="125" class="document-list"><a href="impax.html">IMPAX Client 
            </a> </td>
          <td width="125" class="document-list"><a href="talkstation.html">TalkStation</a></td>
          <td width="125" class="document-list"><a href="ris.html">RIS</a></td>
          <td width="125" class="document-list"><a href="connectivity.html">Connectivity 
            Manager</a></td>
          <td width="125" class="document-list"><a href="impax.html">IMPAX Server</a></td>
        </tr>
      </table></td>
  </tr>
</table>
...

b) main.css

A:visited
{
    color: #264560
}

A:active
{
    color: #12212E
}

A:hover
{
    color: #14623D
}

A
{
    color: #336699
}

table
{
    margin-top: 0px;
    margin-bottom: 0px;
}


p
{
    color:#000000;
	font-family: Arial, Helvetica, sans-serif;
	margin-bottom: 0px;
    margin-top: 5px;
	font-size: 12px;
}

.document-list
{
    background-color:#C7D9E9;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-color: #000000
    margin-bottom:3px;
}

When going to Content Administration -> KM Content -> Documents and clicking the index.html file, the css file is taken into account, when i.e hovering over the IMPAX hyperlink, the path is http://<host>:<port>/irj/go/km/docs/documents/impax.html and the impax.html page is displayed when clicked.

However, when creating a KM Document iView (with or without content filter) pointing to /documents/index.html and displaying the iView, the style sheet is ignored, and the same hyperlink as above now refers to http://<host>:<port>/irj/servlet/prt/portal/prtroot/impax.html, which is incorrect.

-> How can this behaviour be explained?

-> When creating an URL iView pointing to /irj/go/km/docs/Agfa_Knowledgebase/index.html , everything works as expected.

Thanks for the help -

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question