Option Documentation
Congree.Sidebar
The following options are available when initializing the Congree Sidebar:
Option | Description | Values | |
serverAddress | This is the address at which the Congree Bulk Check Service is available. | ||
authentication | This is the authentication configuration. It is an object whose structure is described below. | see table Authentication configuration object | |
initialLanguage | The two letter iso code of the language that the user interface should be shown in. |
| |
editors | (Optional, but strongly recommended) This is an array of editor adapters for the editor elements that CWI should work with. If it is not specified, CWI shows its own editor.
Congree currently provides adapters for the following editors: see "values" Usage is like this:
|
| |
requestValidTerms | This option triggers to display valid terms or not. Possible values are true or false. | ||
editorElementIds | This option is outdated, please do not use it anymore This is an array of the IDs of the editor elements that CWI works with. Optional. If not specified, CWI shows its own editor. | ||
initialRuleSetName | This is the rule set that should be displayed by default. | ||
bulkCheckServicePath | This lets you specify a different URL for the Bulk Check Service (CongreeBulkCheckService/BulkCheckService.svc) if you cannot use the default one. Contact Congree before using this. |
Authentication configuration object
Option | Description |
---|---|
loginType | Specifies how the user is logged in. Possible values are:
|
servicePath (Optional) | Specifies the path to the authentication service. If loginType is "usernamePassword" this should be the same as bulkCheckServicePath. If loginType is "cms" this should point to the authentication service of the Congree Bulk Check Service. If this is not specified, it will default to:
|
userName | The username to log in |
password | This is the password for the Congree user. Only for loginType = "usernamePassword" |
thirdPartySystemsIdentifier | The identifier of the system. Default: "CWI". Only for loginType = "cms" |
accessTokenURL | The URL of the Congree Identity Server. Here the CWI gets the token for REST API requests. |
Congree.Sidebar.show
This method is only relevant in the Fixed display mode.
The show function on the sidebar object requires one parameter: The ID of the div element that will contain the Congree Sidebar.
Congree.Sidebar.asOverlay
This method is only relevant in the Overlay display mode.
The following options are available when calling asOverlay on the sidebar object:
Option | Description |
overlayPosition | The position of the overlay. Can be "right" or "left" |
Congree.Sidebar.logout
This JS function can be used to logout the current user programmatically.