page.getKind()

Get the category of the page.

Syntax

1page.getKind(): Promise<string>

Returns

Promise<string>

A promise that resolves to a string indicating the kind of the current page. The possible values are:

  • 'static'
  • 'ecommerce'
  • 'cms'
  • 'userSystems'
  • 'utility'
  • 'staticTemplate'

Example

1// Get Current Page
2const currentPage = (await webflow.getCurrentPage()) as Page
3
4// Get the page
5const pageKind = await currentPage.getKind()
6console.log(`Page Category: ${pageKind}`)

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadPageSettingsAnyAnyAnyAny
Built with