For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Resources
Get started
ReferenceGuidesExamplesChangelog
ReferenceGuidesExamplesChangelog
  • Designer API
    • Introduction
    • Getting Started
    • Webflow CLI
    • Error Handling
    • App Modes
  • Elements
    • Creating & Retrieving Elements
    • Element Properties & Methods
    • Element Types & Methods
  • Styles
    • Managing Style Properties
    • Managing Variable Modes
  • Components
  • Variables & Collections
    • Variable Collections
    • Variables
    • Variable Modes
  • Assets
  • Pages & Folders
      • Page information
      • Page settings
        • Get search engine title
        • Set search engine title
        • Check if page uses title as the search engine title
        • Use page title as search engine title
        • Get search engine description
        • Set search engine description
        • Check if page uses description as the search engine description
        • Use page description as search engine description
        • Get search image
        • Set search image
        • Use Open Graph image as search image
        • Check if page is excluded from in site search indexing
        • Exclude page from in site search indexing
  • Utilities
    • User Events & Notifications
    • App Intents & Connections
  • Additional Resources
    • API Playground
    • FAQs
LogoLogo
Resources
Get started
On this page
  • page.isExcludedFromSearch()
Pages & FoldersManaging PagesSEO metadata

Check if page is excluded from search

Was this page helpful?
Previous

Exclude page from search

Next
Built with

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}

Try this example

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadPageSettingsAnyAnyAnyAny