For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Resources
Get started
ReferenceGuidesExamplesChangelog
ReferenceGuidesExamplesChangelog
  • Designer API
    • Introduction
    • Getting Started
    • Webflow CLI
    • Error Handling
    • App Modes
  • Elements
    • Creating & Retrieving Elements
    • Element Properties & Methods
    • Element Types & Methods
  • Styles
    • Managing Style Properties
    • Managing Variable Modes
  • Components
  • Variables & Collections
    • Variable Collections
    • Variables
    • Variable Modes
  • Assets
  • Pages & Folders
      • Page information
        • Get page name
        • Set page name
        • Get page title
        • Set page title
        • Get page slug
        • Set page slug
        • Get page description
        • Set page description
        • Get publish path
        • Get page category
        • Get utility page key
        • Get collection ID
        • Get collection name
      • Page settings
  • Utilities
    • User Events & Notifications
    • App Intents & Connections
  • Additional Resources
    • API Playground
    • FAQs
LogoLogo
Resources
Get started
On this page
  • page.getKind()
Pages & FoldersManaging PagesPage information

Get page category

Was this page helpful?
Previous

Get utility page key

Next
Built with

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}`)

Try this example

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadPageSettingsAnyAnyAnyAny