Designer API
Control the Webflow Designer
page.getKind()
Get the category of the page.
1page.getKind(): Promise<string>
Promise<string>
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'
1// Get Current Page2const currentPage = (await webflow.getCurrentPage()) as Page34// Get the page5const pageKind = await currentPage.getKind()6console.log(`Page Category: ${pageKind}`)
Try this example