Objects in DekiScript
- Applies to:
- All versions
- Role required:
- Draft Contributor
Assign properties to DekiScript objects to display user, page and site information for your NiCE KM instance on your pages.
Assign properties to objects
The NiCE KM DekiScript objects are: user, page and site. Assign properties by adding a period . after the object followed by the property:
| Object with property | Function |
|---|---|
user.name |
Displays the name of users |
user.anonymous |
Displays anonymous users |
page.title |
Displays the page title |
page.author |
Displays the author of the page |
site.uri |
Displays the URL of the site |
site.name |
Displays the name of the site |
Display user, page and site information
Follow the steps in this example to display user, page or site information on your pages:
- Add a DekiScript block to a page.
- Type the following code into the DekiScript block:
"User: " ..user.displayname;<br/> "Page title: " ..page.title;<br/> "Site name: " ..site.name;<br/>
Explanation of the syntax
| Syntax element | Description |
|---|---|
"" |
Designate the beginning and end of the custom text string you want to display |
.. |
Designates the current page |
user.displayname |
The object.property call |
; |
The operator indicating the end of a line of code (necessary) |
<br/> |
Forces a line break |
- Once you click Save, the page will display the following:
Page title: Objects in DekiScript
Site name: Expert Success Center

