Get page category

page.getKind()

Get the category of the page.

Syntax

page.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

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

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadPageSettingsAnyAnyAnyAny