Skip to main content

Entry List Options

Log in to add to favourites

Entry List Options is a structure that is used to describe details for requesting entry listing results.

Properties

Name Type Description
contentTypeId string The id of the content type.
fieldLinkDepths { string: number } Object containing field paths to resolve linked entries for and the link depth to resolve the field to
fields string [...] An array of field ids to restrict the fields returned for an entry.
language string The language variation to return for each entry.
linkDepth number The depth at which to resolve the full entry data for a linked entry or asset, with a maximum depth value of 10.
order string [...] An array of field ids to order the results by. Descending order is specified using a prefixed '-'.
pageOptions PageOptions An object specifying the pageSize and pageIndex.

Example

JavaScript
ContensisClient.list
.get({
    language: 'fr-FR',
    linkDepth: 2,
    fields: ['title', 'overview']
})
.then(function (entryList) {
    entryList.items.forEach(item => (
      console.log(item.title);
      console.log(item.overview);
   ))
});

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request