Hi all,
Based on the guide below:
Content Server UI Widgets 10.0.1 and 10.5.0 JavaScript Documentation (opentext.com)
Currently, we are running OTCS 22.1.
We tried to implement on simple test page via code below to load the SmartUI:
<!DOCTYPE html>
<html>
<head>
<script src="https://OTCSHOMExxx/img/csui/bundles/csui-app.js"></script>
<link rel="stylesheet" href="https://OTCSHOMExxx/img/csui/bundles/csui-app.css">
<style>
body {
font-size: 11px;
}
</style>
<script>
csui.onReady( function() {
var connector = new csui.util.Connector( {
connection: {
url: "https://OTCSHOMExxx/otcs/cs.exe/api/v1",
supportPath: "/img"
}
} ),
browser = new csui.widget.FolderBrowserWidget( {
connector: connector,
placeholder: "#folderBrowser"
} );
browser.show();
});
</script>
</head>
<body> <div id="folderBrowser"></div> </body>
</html>
The code above, we put it in testpage.htm, and upload it support directory of OTCS and tried to access it via url: https://OTCSHOMExxx/img/testpage.htm
However, we received error as below:
csui is not defined.
Is there any extra code we should initialize apart from the above code?
I would appreciate it if someone could advise on this matter.
Thanks in advance!