Wix Blog Collections

This article explains the fixed permissions and field structure for the following Wix Blog collections:

Note: These collections are system collections, so you can't change their permissions in the CMS.

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

Categories

This section explains the permissions and fields available in the Categories collection.

To use the Categories collection in code, refer to it as Blog/Categories.

Permissions

The Categories collection has the following permissions:

  • read: ANYONE
  • create: None
  • update: None
  • remove: None

Fields

This section describes each field in this collection and its properties.

Each field heading shows the field name followed by the field ID in parentheses, in the format "fieldName (fieldId)".

ID (_id)

Description: The ID of the blog category. This is a system field and is hidden by default.

Type: Text

Can connect to data: Yes

Can use in dynamic page URL: No

Sortable: Yes

Filter Support: eq, ne

Read-only: Yes

Label (label)

Description: The name of the category as it appears in the Blog menu.

Type: Text

Can connect to data: Yes

Can use in dynamic page URL: Yes

Sortable: Yes

Filter Support: eq, ne, contains, startsWith, hasSome

Read-only: Yes

Post Count (postCount)

Description: The number of posts in the category.

Type: Number

Can connect to data: Yes

Can use in dynamic page URL: No

Sortable: Yes

Filter Support: eq, ne, lt, lte, gt, gte

Read-only: Yes

Posts (posts)

Description: A list of posts in this category, referenced from the Blog/Posts collection.

Type: Multiple-item reference

Can connect to data: No

Can use in dynamic page URL: No

Sortable: No

Filter Support: Yes

Read-only: Yes

Language (language)

Description: The category language.

Type: Language

Can connect to data: No

Can use in dynamic page URL: No

Sortable: No

Filter Support: Yes

Read-only: Yes

Translation ID (translationId)

Description: ID of the category's translations.

Type: Text

Can connect to data: Yes

Can use in dynamic page URL: No

Sortable: No

Filter Support: Yes

Read-only: Yes

Category Page Slug (categoryPageSlug)

Description: The slug of the category page on your published site.

Type: URL

Can connect to data: Yes

Can use in dynamic page URL: No

Sortable: No

Filter Support: No

Read-only: Yes

Category Page URL (categoryPageUrl)

Description: The URL of the category page on your published site.

Type: URL

Can connect to data: Yes

Can use in dynamic page URL: No

Sortable: No

Filter Support: No

Read-only: Yes

Cover Image (coverImage)

Description: Category cover image.

Type: Image

Can connect to data: No

Can use in dynamic page URL: No

Sortable: No

Filter Support: No

Read-only: Yes

Description (description)

Description: Category description.

Type: Text

Can connect to data: Yes

Can use in dynamic page URL: No

Sortable: No

Filter Support: No

Read-only: Yes

Slug (slug)

Description: Slug of the category to retrieve.

Type: Text

Can connect to data: Yes

Can use in dynamic page URL: Yes

Sortable: No

Filter Support: No

Read-only: Yes

Posts

This section explains the permissions and fields available in the Posts collection.

To use the Posts collection in code, refer to it as Blog/Posts.

Permissions

The Posts collection has the following permissions:

  • read: ANYONE
  • create: None
  • update: None
  • remove: None

Fields

This section describes each field in this collection and its properties.

Each field heading shows the field name followed by the field ID in parentheses, in the format "fieldName (fieldId)".

ID (_id)

Description: The ID of the post. This is a system field and is hidden by default.

Type: Text

Can connect to data: Yes

Can use in dynamic page URL: No

Sortable: Yes

Filter Support: eq, ne

Read-only: Yes

Title (title)

Description: The title of the post.

Type: Text

Can connect to data: Yes

Can use in dynamic page URL: Yes

Sortable: Yes

Filter Support: eq, ne, contains, startsWith, hasSome

Read-only: Yes

Published Date (publishedDate)

Description: The date the post was originally published.

Type: Date

Can connect to data: Yes

Can use in dynamic page URL: No

Sortable: Yes

Filter Support: eq, ne, lt, lte, gt, gte

Read-only: Yes

Cover Image (coverImage)

Description: The cover image of the post.

Type: Image

Can connect to data: No

Can use in dynamic page URL: No

Sortable: No

Filter Support: No

Read-only: Yes

Categories (categories)

Description: The categories assigned to the post, referenced from the Blog/Categories collection.

Type: Multiple-item reference

Can connect to data: No

Can use in dynamic page URL: No

Sortable: No

Filter Support: hasAll, hasSome, contains

Read-only: Yes

Main Category (mainCategory)

Description:

Type: Reference

Can connect to data: No

Can use in dynamic page URL: No

Sortable: No

Filter Support: Yes

Read-only: Yes

Plain Content (plainContent)

Description: The text of the post without any formatting.

Type: Text

Can connect to data: Yes

Can use in dynamic page URL: No

Sortable: No

Filter Support: No

Read-only: Yes

Rich Content (richContent)

Description:

Type: Rich Content

Can connect to data: No

Can use in dynamic page URL: No

Sortable: No

Filter Support: No

Read-only: Yes

Excerpt (excerpt)

Description: A few lines of text that appear in the blog feed. Defined in Post Settings or default of first 160 characters of the post.

Type: Text

Can connect to data: Yes

Can use in dynamic page URL: No

Sortable: No

Filter Support: No

Read-only: Yes

Hashtags (hashtags)

Description: List of all hashtags in the post.

Type: Tags

Can connect to data: Yes

Can use in dynamic page URL: No

Sortable: No

Filter Support: hasAll, hasSome

Read-only: Yes

View Count (viewCount)

Description: The number of times the post was viewed.

Type: Number

Can connect to data: Yes

Can use in dynamic page URL: No

Sortable: Yes

Filter Support: eq, ne, lt, lte, gt, gte

Read-only: Yes

Note: viewCount data used on your site pages may require up to 24 hours to update. To make sure new post views are included on your site in real time, disable caching for any page that uses viewCount data. Note that disabling caching may increase your page loading time.

Like Count (likeCount)

Description: The number of likes the post received (from members only).

Type: Number

Can connect to data: Yes

Can use in dynamic page URL: No

Sortable: Yes

Filter Support: eq, ne, lt, lte, gt, gte

Read-only: Yes

Note: likeCount data used on your site pages may require up to 24 hours to update. To make sure new post likes are included on your site in real time, disable caching for any page that uses likeCount data. Note that disabling caching may increase your page loading time.

Comment Count (commentCount)

Description: The number of comments the post received (from members only).

Type: Number

Can connect to data: Yes

Can use in dynamic page URL: No

Sortable: Yes

Filter Support: eq, ne, lt, lte, gt, gte

Read-only: Yes

Description: Indicates whether the post is set as featured in the post settings.

Type: Boolean

Can connect to data: Yes

Can use in dynamic page URL: No

Sortable: No

Filter Support: eq, ne

Read-only: Yes

Pinned (pinned)

Description: Indicates whether the post was pinned to the top of the page in the live site.

Type: Boolean

Can connect to data: Yes

Can use in dynamic page URL: No

Sortable: No

Filter Support: eq, ne

Read-only: Yes

Last Published Date (lastPublishedDate)

Description: The most recent publish date of the post.

Type: Date

Can connect to data: Yes

Can use in dynamic page URL: No

Sortable: Yes

Filter Support: eq, ne, lt, lte, gt, gte

Read-only: Yes

Cover Image Displayed (coverImageDisplayed)

Description: Indicates whether the cover image is displayed in the feed. If false, the cover image is displayed only when you share the post on social media.

Type: Boolean

Can connect to data: Yes

Can use in dynamic page URL: No

Sortable: No

Filter Support: eq, ne

Read-only: Yes

Post Page URL (postPageURL)

Description: The relative URL of the post page on your published site.

Type: URL

Can connect to data: Yes

Can use in dynamic page URL: No

Sortable: No

Filter Support: No

Read-only: Yes

Language (language)

Description:

Type: Language

Can connect to data: No

Can use in dynamic page URL: No

Sortable: No

Filter Support: Yes

Read-only: Yes

Translation ID (translationId)

Description:

Type: Text

Can connect to data: Yes

Can use in dynamic page URL: No

Sortable: No

Filter Support: Yes

Read-only: Yes

Time to Read (timeToRead)

Description: Estimated time in minutes required to read the post.

Type: Number

Can connect to data: Yes

Can use in dynamic page URL: No

Sortable: No

Filter Support: No

Read-only: Yes

Description:

Type: Multi-Reference

Can connect to data: No

Can use in dynamic page URL: No

Sortable: No

Filter Support: No

Read-only: Yes

Tags (tags)

Description:

Type: Multi-Reference

Can connect to data: No

Can use in dynamic page URL: No

Sortable: No

Filter Support: Yes

Read-only: Yes

Author (author)

Description:

Type: Reference

Can connect to data: No

Can use in dynamic page URL: No

Sortable: No

Filter Support: Yes

Read-only: Yes

Slug (slug)

Description:

Type: Text

Can connect to data: Yes

Can use in dynamic page URL: Yes

Sortable: No

Filter Support: No

Read-only: Yes

PaidPlans (paidPlans)

Description:

Type: Multi-Reference

Can connect to data:

Can use in dynamic page URL: No

Sortable: No

Filter Support: Yes

Read-only: Yes

Tags

This section explains the permissions and fields available in the Tags collection.

To use the Tags collection in code, refer to it as Blog/Tags.

Permissions

The Tags collection has the following permissions:

  • read: ANYONE
  • create: None
  • update: None
  • remove: None

Fields

This section describes each field in this collection and its properties.

Each field heading shows the field name followed by the field ID in parentheses, in the format "fieldName (fieldId)".

ID (_id)

Description: The ID of the blog tag. This is a system field and is hidden by default.

Type: Text

Can connect to data: Yes

Can use in dynamic page URL: No

Sortable: Yes

Filter Support: eq, ne

Read-only: Yes

Label (label)

Description: The name of the tag as it appears in the Blog menu. 

Type: Text 

Can connect to data: Yes 

Can use in dynamic page URL: Yes

Sortable: Yes

Filter Support: eq, ne, contains, startsWith, hasSome 

Read-only: Yes

Post Count (postCount)

Description: The number of posts with the tag.

Type: Number

Can connect to data: Yes

Can use in dynamic page URL: No

Sortable: Yes

Filter Support: eq, ne, lt, lte, gt, gte

Read-only: Yes

Posts (posts)

Description: A list of posts with this tag, referenced from the Blog/Posts collection.

Type: Multiple-item reference

Can connect to data: No

Can use in dynamic page URL: No

Sortable: No

Filter Support: Yes

Read-only: Yes

Tag Page URL (tagPageUrl)

Description: The URL of the tag page on your published site.

Type: URL

Can connect to data: Yes

Can use in dynamic page URL: No

Sortable: No

Filter Support: No

Read-only: Yes

Slug (slug)

Description: Slug of the tag to retrieve.

Type: Text

Can connect to data: Yes

Can use in dynamic page URL: Yes

Sortable: No

Filter Support: No

Read-only: Yes

Did this help?