Pular para o conteúdo principal

SearchEntriesParams

Request parameters for searching entries.

Used by SearchSelector.entries.

Hierarchy

Index

Properties

optionalcategories

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'.

optionalexcept

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.

optionallimit

limit?: number

The limit of items per page.

optionalmodels

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'.

optionalorder

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.

optionalpage

page?: number

The page requested.

optionalquery

query?: string

A search query string.

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