Page settings
page.isDraft()
Checks if the page is a draft.
Syntax
Returns
** Promise<boolean
>**
A Promise that resolves to a boolean
value.
Example
TypeScript
Designer Ability
page.setDraft(isDraft)
Sets the draft mode of the page.
Syntax
Parameters
- isDraft:
boolean
- Set totrue
to mark the page as a draft,false
otherwise.
Returns
Promise<null
>
A Promise that resolves to null
.
Example
TypeScript
Designer Ability
page.isPasswordProtected()
Checks if the page is password-protected.
Syntax
Returns
Promise<boolean
>
A Promise that resolves to a boolean
value.
Example
TypeScript
Designer Ability
page.getUtilityPageKey()
Retrieves the utility page key if available.
Syntax
Returns
Promise<null | string
>
A Promise that resolves to a string
with the value of the utility key, or null
if the page is not a utility page.
Example
TypeScript
Designer Ability
page.isHomepage()
Checks if the page is set as the homepage.
Syntax
Returns
Promise<boolean
>
A Promise that resolves to a boolean
value.
Example
TypeScript