Use page title as search title

page.useTitleAsSearchTitle(shouldUseTitle)

Set the page title as the search title.

Syntax

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

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

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canManagePageSettingsAnyAnyAnyAny
Built with