Extra tab with OpenKM url link

From OpenKM Documentation
Jump to: navigation, search

Example how using ExtraTab with iframe that contains references to OpenKM object as links. Can be used any object - document, email, folder, record - UUID.

Create and HTML file with OpenKM UUID's links Create a file called extra_tab.html.

<html>
<head>
  <title>Example</title>
</head>
<script type="text/javascript">
  function openPath(path) { 
    parent.jsOpenPathByUuid(path);
  }
</script>
<body>
<h1>url</h1>
  <a href="javascript:void();" onclick="openPath('9789ac11-ac03-4ce7-87e9-9643b0ddf99a');">Document link example 1</a>
</body>
</html>

Copy extra_tab.html file into $TOMCAT/webapps/OpenKM folder.


Nota advertencia.png Copy to OpenKM folder is mandatory, otherside from iframe will not be able to access protected resource. Note that each time OpenKM.war is overwritten - application update or upgrade - the file extra_tab.html will be deleted. Take in consideration backup it.

Finally configure ExtraTab with the new url. Something like http://localhost:8080/OpenKM/extra_tab.html


Nota clasica.png Take http://localhost:8080/OpenKM/extra_tab.html as example in each case should use your own OpenKM application url.