Skip to main content

Page object (TCS)

The page object includes properties that describe an individual page. Properties include everything from the page's API URI to the page's visit count. 
 

page.Api : uri

Outputs the URI of the current page. 

DekiScript Output
page.api;
https://success.mindtouch.com/@api/deki/pages/17686?redirects=0

page.Author : map

Outputs the User object for the user that created the current page. 

DekiScript Output
page.author.displayname;
admin

page.Date : str

Outputs a string with the page's last modified date.

DekiScript Output
page.date;
Mon, 30 Jan 2017 18:59:06 GMT

page.Files : map

Outputs a map of the current page's attached files.

page.Id : num

Outputs a number for the current page's unique page ID.

DekiScript Output
page.id;
17686

page.Name : str

Outputs a string of the current page's name (from the URL).

DekiScript Output
page.name;
Page_object

page.Parent : map

Outputs a map of details for the immediate parent page of the current page.

page.Path : str

Outputs a string of the current page's path.  The path is the part of the URL after the URL (http://support.yoursite.com/PATH)

DekiScript Output
page.path;
Documentation/MindTouchTCS/Scripting/Enhance_with_DekiScript/DekiScript_objects/Page_object

page.Subpages : map

Outputs a map of details for the immediate subpages of the current page. 

page.Tags : map

Outputs a map of the tags for the current page. 

page.Title : str

Outputs a string of the Title for the current page (not from the URL).

DekiScript Output
page.title;
Page object (TCS)

page.ViewCount : num

Outputs a number for the total view count of the current page. 

DekiScript Output
page.viewcount;
499
  • Was this article helpful?