Velo: Wix Portfolio "Collections" Collection Fields

Note: This collection contains read-write fields.

Tip: Before continuing, make sure you've read Working with Wix App Collections.

To use the Collections collection in code, refer to it as "Portfolio/Collections".

Copy
1
wixData.query("Portfolio/Collections")
2
.find()
3
.then( (results) => {
4
// handle the results
5
} );

This document describes the permissions and fields in your Collections collection.

Important: Trying to query more than 100 items exceeds the wix-data limit and results in an error.

Permissions

The Collections collection has the following permissions:

  • Read: Anyone
  • Create: Admin
  • Update: Admin
  • Delete: Admin

You cannot change the Collections collection's permissions. 

Fields

The field name is listed as the heading of each section, with the field ID listed in parentheses, like this: Name (name). The fields appear in this document in the order in which they appear in your collection by default.

ID (_id)

Description: The collection ID that was created by the server. This is a system field and is hidden by default.

Type: Text

Can connect to data: Yes

Can use in dynamic page URL: Yes

Can be sorted: Yes

Can be filtered: eq, ne, hasSome, startsWith

Read-only: Yes

Required: No

Revision (revision)

Description: The current state of an item in the collection. The revision's state changes every time an item is modified.

Type: Text

Can connect to data: Yes

Can use in dynamic page URL: No

Can be sorted: No

Can be filtered: No

Read-only: Yes

Required: No

Title (title)

Description: The title of the collection.

Type: Text

Can connect to data: Yes

Can use in dynamic page URL: Yes

Can be sorted: Yes

Can be filtered: eq, ne, hasSome, startsWith

Read-write: Yes

Required: No

Description (description)

Description: The description of the collection.

Type: Text

Can connect to data: Yes

Can use in dynamic page URL: Yes

Can be sorted: Yes

Can be filtered: eq, ne, hasSome

Read-write: Yes

Required: No

Slug (slug)

Description: The collection item's slug. The slug is the URL-friendly name that is unique across the portfolio.

Type: Text

Can connect to data: Yes

Can use in dynamic page URL: Yes

Can be sorted: Yes

Can be filtered: eq, ne, hasSome, startsWith

Read-write: Yes

Required: No

Cover Image (coverImage)

Description: A JSON object that represents the cover image of the collection.

Type: Object

Can connect to data: Yes, by the cover image's focal points.

Can use in dynamic page URL: No

Can be sorted: No

Can be filtered: No

Read-write: Yes

Required: No

Copy
1
{
2
"imageInfo": "wix:image://v1/8b7eef_3deb121802514be7b698d0447559f9da~mv2.png/avatar-ga890ac591_1280.png#originWidth=1280&originHeight=1280",
3
"focalPoint": {
4
"x": "number",
5
"y": "number"
6
}
7
}

Hidden (hidden)

Description: Whether the collection is hidden.

Type: Boolean

Can connect to data: Yes

Can use in dynamic page URL: No

Can be sorted: No

Can be filtered: eq, ne, hasSome

Read-write: Yes

Required: No

Sort Order (sortOrder)

Description: The collection sort order.

Type: Number

Can connect to data: Yes

Can use in dynamic page URL: Yes

Can be sorted: Yes

Can be filtered: eq, ne, hasSome, lt, le, gt, ge

Read-write: Yes

Required: No

Created Date (_createdDate)

Description: The date the collection was created. This is a system field and is hidden by default.

Type: Date

Can connect to data: Yes

Can use in dynamic page URL: No

Can be sorted: Yes

Can be filtered: eq, ne, hasSome, lt, gt

Read-only: Yes

Required: No

Updated Date (_updatedDate)

Description: The date the collection was last updated. This is a system field and is hidden by default.

Type: Date

Can connect to data: Yes

Can use in dynamic page URL: No

Can be sorted: Yes

Can be filtered: eq, ne, hasSome, lt, gt

Read-only: Yes

Required: No

Url (url)

Description: The url of the collection page.

Type: Text

Can connect to data: Yes

Can use in dynamic page URL: No

Can be sorted: No

Can be filtered: No

Read-only: Yes

Required: No

Seo Data (seoData)

Description: A JSON object that represents Seo data of the collection.

Type: Object

Can connect to data: No

Can use in dynamic page URL: No

Can be sorted: No

Can be filtered: No

Read-write: Yes

Required: No

Copy
1
{
2
"settings": {
3
"preventAutoRedirect": "true"
4
},
5
"tags": {
6
[
7
"children": "",
8
"custom": "",
9
"disabled":"",
10
"meta": {},
11
"props": {},
12
"type":""
13
]
14
}
15
}
Was this helpful?
Yes
No