The “content_page” object is a scriptable java object called ‘GlideContentPage’. In a script you can simply do:
1 | var contentPage = new GlideContentPage.get(contentPageGR.sys_id); |
Which will get you access to the following functions:
- getSiteID
- getID
- getURLSuffix
- getParentPage
- getName
- getDescription
- getMeta
- getTheme
- isValid
- getTitle
- getModelTable
- getModelID
- getDefaultLayout
- cloneable
- isFrameBuster
General Note:
In CMS, if you are looking to access the details of a page using these function, use ‘current_page.getID()’.
For example:
var contentPage = new GlideContentPage(current_page.getID());
This will work in a UI Macro or Dynamic Content Block.