Check if page description is used as search description

page.usesDescriptionAsSearchDescription()

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

Syntax

1page.usesDescriptionAsSearchDescription(): Promise<boolean>;

Returns

Promise<boolean>

A Promise that resolves to a boolean value.

Example

1// Get current page
2const currentPage = await webflow.getCurrentPage()
3
4// Check search engine description
5const isSearchDescription = await currentPage?.usesDescriptionAsSearchDescription()
6
7if(isSearchDescription){
8 console.log("This page uses its description as the search engine description")
9} else {
10 console.log("This page has a custom search engine description")
11}

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadPageSettingsAnyAnyAnyAny
Built with