The following page shows the DekiScript needed to display user, page and site properties. For information on how to get started writing DekiScript please reference the Getting Started Guide below.
User properties expose information about the current user, whether authenticated or not. You can use these properites to display content tailored to your user, protect certain information and to add a more personal experience to you MindTouch apps.
| DekiScript | Description |
|---|---|
{{user.admin}} | Determine if the user is an administrator |
{{user.anonymous}} | Determine if the user is anonymous (not logged in) |
{{user.api}} | The uri of the specified user |
{{user.authtoken}} | The Authtoken used to authenticate the user. Only populated for the specified authenticated user. |
{{user.emailhash}} | Returns the MD5 hash-value of the specified user's email address |
{{user.feed}} | Returns the the RSS/Atom feed uri for the specified authenticated user |
{{user.gravatar}} | Returns the Gravatar URI for the specified user |
{{user.homepage}} | Returns a page object for the homepage of the specified user |
{{user.id}} | Returns the id for the specified user |
{{user.name}} | Returns the username for the specified user |
{{user.timezone}} | Determine the timezone of the specified user |
{{user.uri}} | Returns the homepage uri for the specified user |
Page properties expose information about the pages throughout your MindTouch site. You can use page properties to offer a more in depth look at the community contributions to a page, to build dynamic MindTouch apps and to control how the content (text, files, comments, images, properites) are displayed to the end user.
| DekiScript | Description |
|---|---|
{{page.api}} | Returns the API uri of the specified page |
{{page.author}} | Returns a user object for user that created the specified page |
{{page.comments}} | Returns the comments for the specified page as a list of maps. |
{{page.date}} | Returns the Date-time in GMT when the specified page was last modified |
{{page.editsummary}} | Returns the change summary associated with last edit operation. |
{{page.feed}} | Returns the RSS/Atom feed uri of the page |
{{page.files}} | Returns a map of the files attached to the specified page |
{{page.fronturi}} | Returns the URI to access the front page (opposite of the talk: page) of specified page |
{{page.id}} | Returns the ID of the specified page |
{{page.language}} | Returns the language of the specified page |
{{page.mime}} | Returns the mime-type of the specified page |
{{page.name}} | Returns the name of the specified page |
{{page.namespace}} | Returns the namespace of the specified page |
{{page.parent}} | Returns a page object of the parent of the specified page |
{{page.parents}} | Returns a map of the hieararchical list of parent pages starting at the specified page |
{{page.path}} | Returns the path of the specified page |
{{page.properties}} | Returns a map of the specified pages properties |
{{page.revisions}} | Returns a revision history list for the specified page |
{{page.subpages}} | Returns a map of the subpages that stem from the specified page |
{{page.tags}} | Returns a map of the tags attached to the specified page |
{{page.talkuri}} | Returns the URI to access the talk page (opposite of the front page) of specified page |
{{page.text}} | Returns the raw text contents of a specified page |
{{page.title}} | Returns the title of a specified page |
{{page.toc}} | Add a Table of Contents to the curent page |
{{page.unprefixedpath}} | Returns the path of the specified page without the namespace prefix |
{{page.uri}} | Returns the uri of the specified page |
{{page.viewcount}} | Returns the number of views for the specified page |
{{page.xml}} | Returns the raw XML content for the specified page |
The site properties provide information about your MindTouch site as a whole. You can use site properties to visualize the health of your community, develop site specific apps and identify pages that may be new, relevant, popular or hidden.
| DekiScript | Description |
|---|---|
{{site.api}} | Returns the API uri of the site |
{{site.feed}} | Returns the RSS/Atom feed uri of the site |
{{site.homepage}} | Retuns a page object for the sites homepage |
{{site.hostname}} | Returns a string with the sites hostname |
{{site.language}} | Returns the sits language code |
{{site.pagecount}} | Returns the number of pages on the site |
{{site.tags}} | Returns a map of all tags defined for the site |
{{site.uri}} | Returns the site uri |
{{site.usercount}} | Returns the number of users on the site |
{{site.users}} | Returns a list of user objects for all the users on the site |
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |