Use page description as search description

page.useDescriptionAsSearchDescription(use)

Set the page description as the search description.

Syntax

1page.useDescriptionAsSearchDescription(use: boolean): Promise<null>;

Parameters

  • use: boolean - Whether the page description should be used as the search description.

Returns

Promise<null>

A Promise that resolves to null.

Example

1// Get Current Page
2const currentPage = await webflow.getCurrentPage() as Page
3
4// Set description as search description
5await currentPage.useDescriptionAsSearchDescription(true)

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
**canManagePageSettings **AnyAnyAnyAny
Built with