Skip to content
Other versions

Loading…

Using iframe for extending frontend UI

This sample gives some clues about how to use iframe in frontend UI. This sample use ExtraTab feature with an iframe that contains references to OpenKM object 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  $TOMCAT/webapps/OpenKM folder.

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