Check if page description is used as search description

page.usesDescriptionAsSearchDescription()

Check if the page description is used as the search description.

Syntax

page.usesDescriptionAsSearchDescription(): Promise<boolean>;

Returns

Promise<boolean>

A Promise that resolves to a boolean value.

Example

// Get current page
const currentPage = await webflow.getCurrentPage()
// Check search engine description
const isSearchDescription = await currentPage?.usesDescriptionAsSearchDescription()
if(isSearchDescription){
console.log("This page uses its description as the search engine description")
} else {
console.log("This page has a custom search engine description")
}

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadPageSettingsAnyAnyAnyAny