Use page title as search title

page.useTitleAsSearchTitle(shouldUseTitle)

Set the page title as the search title.

Syntax

page.useTitleAsSearchTitle(use: boolean): Promise<null>;

Parameters

  • shouldUseTitle: boolean - Whether the page title should be used as the search title.

Returns

Promise<null>

A Promise that resolves to null.

Example

// Get Current Page
const currentPage = await webflow.getCurrentPage()
// Set title as search title
await currentPage?.useTitleAsSearchTitle(true)

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canManagePageSettingsAnyAnyAnyAny