SEO metadata
page.isExcludedFromSearch()
Check if the page is excluded from internal site search.
Syntax
Returns
Promise<boolean
>
A Promise that resolves to a boolean
value.
Example
Designer Ability
page.excludeFromSearch(shouldExclude)
Sets whether the page should be excluded from search engine indexing.
Syntax
Parameters
- shouldExclude:
boolean
- Set totrue
to exclude the page from search engine indexing,false
otherwise.
Returns
Promise<null
>
A Promise that resolves to null
when the page is excluded from search.
Example
Designer Ability
page.usesTitleAsSearchTitle()
Checks if the page uses its title as the search engine title.
Syntax
Returns
Promise<boolean
>
A Promise that resolves to a boolean
value
Example
Designer Ability
page.useTitleAsSearchTitle(use)
Sets whether the page should use its title as the search engine title.
Syntax
Parameters
- use:
boolean
- Set totrue
to use the page title as the search engine title,false
otherwise.
Returns
Promise<null
>
A Promise that resolves to null
when the search engine title is set.
Example
Designer Ability
page.getSearchTitle()
Retrieves the search engine title of the page.
Syntax
Returns
Promise< string
>
A Promise that resolves to a string with the search engine title.
Example
Designer Ability
page.setSearchTitle(title)
Sets the search engine title of the page to the provided value.
Syntax
Parameters
- title:
string
- The new search engine title to set for the page.
Returns
Promise<null
>
A Promise that resolves to a null
value when the search engine title has been set.
Example
Designer Ability
page.usesDescriptionAsSearchDescription()
Checks if the page uses its description as the search engine description.
Syntax
Returns
Promise<boolean
>
A Promise that resolves to a boolean
value when the description is set.
Example
Designer Ability
page.useDescriptionAsSearchDescription(use)
Sets whether the page should use its description as the search engine description.
Syntax
Parameters
- use:
boolean
- Set totrue
to use the page description as the search engine description,false
otherwise.
Returns
Promise< null
>
A Promise that resolves to null
when the search engine description is set.
Example
Designer Ability
page.getSearchDescription()
Retrieves the search engine description of the page.
Syntax
Returns
Promise< string
>
A Promise that resolves to a string
with the search engine description.
Example
Designer Ability
page.setSearchDescription(description)
Sets the search engine description of the page to the provided value.
Syntax
Parameters
- description:
string
- The new search engine description to set for the page.
Returns
Promise<null
>
A Promise that resolves to null
when the search engine description is set.
Example
Designer Ability
page.usesOpenGraphImageAsSearchImage()
Check if the page uses its Open Graph image as the search engine image.
Syntax
Returns
Promise<boolean
>
A Promise that resolves to a boolean
value to indicate whether a page uses its Open Graph image as a search engine image.
Example
Designer Ability
page.useOpenGraphImageAsSearchImage(use)
Choose whether the page should use its Open Graph image as the search engine image.
Syntax
Parameters
- use:
boolean
- Set totrue
to use the Open Graph (OG) image as the search engine image,false
otherwise.
Returns
Promise<null
>
A Promise that resolves to null
when the search image is set.
Example
Designer Ability
page.getSearchImage()
Retrieves the search engine image URL of the page.
Syntax
Returns
Promise<string
>
A Promise that resolves to a string with the search engine image URL.
Example
Designer Ability
page.setSearchImage(url)
Sets the search engine image of the page to the provided URL.
Syntax
Parameters
- url:
string
- The new search engine image URL to set for the page.
Returns
Promise<null
>
A Promise that resolves to null
when the search engine image is set.