Check if page is excluded from search

page.isExcludedFromSearch()

Check if the page is excluded from internal site search.

Syntax

1page.isExcludedFromSearch(): 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 if page is excluded from webflow's internal site search
5const isExcluded = await currentPage?.isExcludedFromSearch()
6
7if (isExcluded){
8 console.log("Current page is excluded from Webflow's internal site search")
9} else {
10 "Current page is included in included in Webflow's internal site search"
11}

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadPageSettingsAnyAnyAnyAny
Built with