Check if page uses description as Open Graph description

page.usesDescriptionAsOpenGraphDescription()

Checks if the page uses its description as its Open Graph description.

Syntax

1page.usesDescriptionAsOpenGraphDescription(): Promise<boolean>

Returns

Promise<boolean>

A Promise that resolves to a boolean indicating whether the page uses its description as its Open Graph description.

Example

1// Get Current Page
2const currentPage = await webflow.getCurrentPage() as Page
3
4// Check page status
5const isOpenGraphDescription = await currentPage.usesDescriptionAsOpenGraphDescription()
6
7// Print page status
8if (isOpenGraphDescription) {
9
10 console.log('Page uses Page Description as Open Graph Description')
11} else {
12 console.log('This page has a custom Open Graph Description')
13}

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadPageSettingsAnyAnyAnyAny
Built with