Difference between revisions of "Extra tab with OpenKM url link"

From OpenKM Documentation
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 20: Line 20:
 
</source>
 
</source>
  
Copy html file into $TOMCAT/webapps/OpenKM folder.
+
Copy '''extra_tab.html''' file into $TOMCAT/webapps/OpenKM folder.
  
{{Warning|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}}
+
{{Warning|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
 
Finally configure [[ExtraTab]] with the new url. Something like http://localhost:8080/OpenKM/extra_tab.html
 +
 +
{{Note|Take http://localhost:8080/OpenKM/extra_tab.html as example in each case should use your own OpenKM application url.}}
  
  
 
[[Category: Utilities]]
 
[[Category: Utilities]]

Latest revision as of 12:37, 7 April 2014

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.