Check if page is excluded from search

page.isExcludedFromSearch()

Check if the page is excluded from internal site search.

Syntax

page.isExcludedFromSearch(): Promise<boolean>;

Returns

Promise<boolean>

A Promise that resolves to a boolean value.

Example

// Get Current Page
const currentPage = await webflow.getCurrentPage()
// Check if page is excluded from webflow's internal site search
const isExcluded = await currentPage?.isExcludedFromSearch()
if (isExcluded){
console.log("Current page is excluded from Webflow's internal site search")
} else {
"Current page is included in included in Webflow's internal site search"
}

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadPageSettingsAnyAnyAnyAny