cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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 -

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi,

You should correct the path to your css file in your index.html:

href="/irj/go/km/docs/documents/main.css"

Regards,

Praveen Gudapati

Former Member
0 Kudos

Yes, I know - but it works directly in KM and as an URL iView - I assume the document iView's behaviour is as designed (which is pretty odd behaviour in my opinion)?

0 Kudos

Hi,

I agree with you that it is an odd behaviour but if you change the links as I specified in my previous reply then every thing will work consistently.

Regards,

Praveen Gudapati

Answers (0)