page.getName()

Get the name of the page.

Syntax

1page.getName(): Promise<string>

Returns

Promise<string>

A promise that resolves to the name of the page.

Example

1// Get Current Page
2const currentPage = await webflow.getCurrentPage() as Page
3
4// Get page name
5const pageName = await currentPage.getName()
6console.log(pageName)

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadPageSettingsAnyAnyAnyAny
Built with