page.excludeFromSearch(shouldExclude)

Exclude the page from internal site search.

Syntax

1page.excludeFromSearch(shouldExclude: boolean): Promise<null>;

Parameters

  • shouldExclude: boolean - Whether the page should be excluded from search engine indexing.

Returns

Promise<null>

A Promise that resolves to null.

Example

1// Get Current Page
2const currentPage = await webflow.getCurrentPage()
3
4// Exclude from search engine indexing
5await currentPage.excludeFromSearch(true)

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canManagePageSettingsAnyAnyAnyAny
Built with