Difference between revisions of "Extra tab with OpenKM url link"
From OpenKM Documentation
(Created page with "Example how using Extra tab with iframe that contains references to OpenKM object as links. Create and HTML file with UUID links: <source lang="xml"> <html> <head> <tit...") |
|||
Line 1: | Line 1: | ||
− | Example how using [[ | + | 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 UUID links | + | '''Create and HTML file with OpenKM UUID's links''' |
+ | Create a file called '''extra_tab.html'''. | ||
<source lang="xml"> | <source lang="xml"> | ||
<html> | <html> | ||
Line 14: | Line 15: | ||
<body> | <body> | ||
<h1>url</h1> | <h1>url</h1> | ||
− | <a href="javascript:void();" onclick="openPath('9789ac11-ac03-4ce7-87e9-9643b0ddf99a');"> | + | <a href="javascript:void();" onclick="openPath('9789ac11-ac03-4ce7-87e9-9643b0ddf99a');">Document link example 1</a> |
</body> | </body> | ||
</html> | </html> | ||
</source> | </source> | ||
+ | |||
+ | Copy 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}} | ||
+ | |||
+ | Finally configure [[ExtraTab]] with the new url. Something like http://localhost:8080/OpenKM/extra_tab.html | ||
+ | |||
[[Category: Utilities]] | [[Category: Utilities]] |
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