Check if page uses description as Open Graph description

page.usesDescriptionAsOpenGraphDescription()

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

Syntax

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

// Get Current Page
const currentPage = await webflow.getCurrentPage() as Page
// Check page status
const isOpenGraphDescription = await currentPage.usesDescriptionAsOpenGraphDescription()
// Print page status
if (isOpenGraphDescription) {
console.log('Page uses Page Description as Open Graph Description')
} else {
console.log('This page has a custom Open Graph Description')
}

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadPageSettingsAnyAnyAnyAny