Designer API
Control the Webflow Designer
page.isExcludedFromSearch()
Check if the page is excluded from internal site search.
1page.isExcludedFromSearch(): Promise<boolean>;
Promise<boolean>
boolean
A Promise that resolves to a boolean value.
1// Get Current Page2const currentPage = await webflow.getCurrentPage()34// Check if page is excluded from webflow's internal site search5const isExcluded = await currentPage?.isExcludedFromSearch()67if (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}
Try this example