Difference between revisions of "Extra tab with OpenKM url link"
From OpenKM Documentation
Line 1: | Line 1: | ||
− | Example how using [[ExtraTab] with iframe that contains references to OpenKM object as links. Can be used any object - document, email, folder, record - UUID, | + | 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 and HTML file with OpenKM UUID's links''' |
Revision as of 12:35, 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 html file into $TOMCAT/webapps/OpenKM folder.
Finally configure ExtraTab with the new url. Something like http://localhost:8080/OpenKM/extra_tab.html