Pular para o conteúdo principal

externalSearchEntriesParams

Request parameters for searching entries.

Used by SearchSelector.entries.

Hierarchy

Index

Properties

externaloptionalcategories

categories?: string

A comma-separated list of categories. Only entries in these categories will be returned. If undefined, all entries will be listed, independently of their categories.

For instance, to show only entries in the “news” and “articles” categories, pass 'news,category'.

externaloptionalexcept

except?: number

If defined, removes the given item from the list. Useful to create “related posts” lists.

Note: this field only accepts IDs, and not slugs. Only one ID is allowed.

externaloptionallimit

limit?: number

The limit of items per page.

externaloptionalmodels

models?: string

A comma-separated list of models. Only entries in these models will be returned. If undefined, entries from all workspace models will be listed.

For instance, to show only entries in the “posts” and “videos” categories, pass 'posts,videos'.

externaloptionalorder

order?: title:asc | title:desc | published_at:asc | published_at:desc | updated_at:asc | updated_at:desc

Define how items will be ordered. Check this field type to see the allowed options.

externaloptionalpage

page?: number

The page requested.

externaloptionalquery

query?: string

A search query string.

For instance, searching for “out” will match both “check out!” and “about us”. Search is not case-sensitive.