Check if page uses title as search title

page.usesTitleAsSearchTitle()

Check if the page uses the page title as the search title.

Syntax

page.usesTitleAsSearchTitle(): Promise<boolean>;

Returns

Promise<boolean>

A Promise that resolves to a boolean value.

Example

// Get Current Page
const currentPage = await webflow.getCurrentPage()
// Check title
const usesTitle = await currentPage?.usesTitleAsSearchTitle()
if (usesTitle){
console.log('This page uses its Title as the Search Engine title')
} else {
console.log( "This page has a custom search engine title")
}

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadPageSettingsAnyAnyAnyAny