Skip to content
Other versions

Loading…

Using iframe for extending frontend UI

This sample gives some clues about how to use an iframe in the frontend UI. This sample uses the ExtraTab feature with an iframe that contains references to OpenKM objects as links.

File 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 the extra_tab.html file into  the $TOMCAT/webapps/OpenKM folder.

Finally, configure the ExtraTab feature with the new URL, for example  http://localhost:8080/OpenKM/extra_tab.html.