
Written By
Joris Borgers
New York City, United States
Joris likes to travel all over the world. He loves the latest developments in coding. He finds it exciting to find the best solution for clients. Realising the best solution in cooperation with the World of Wix specialists is Joris at his best.
Talking about databases can be confusing for people new to Wix and/or web development. "Collections, databases, items, single item collections, dynamic pages" and the list goes on. This article covers the basics of Wix databases or as they call them, collections.
Common terms
Collection A collection is a database. The contents can easily be updated from the content manager tab on your website's dashboard.
Single item collection A single item collection is a collection that can only hold one item. This can be used if you want to display values on your website that you want to be able to easily update without having to go into the editor.
Item Most collection consists of multiple items. Think of it as lines in excel. If you have a collection for the boroughs in NYC the items would be Manhattan, Brooklyn, and Queens.
Dynamic pages Dynamic pages are pages that are created by database items. The pages use a template you can create and can then display information for a specific database item on a specific URL. This allows you to easily create thousands of pages.
Index When you search on a field that has been indexed the load time will be reduced. Realistically you will only start noticing these effects when your collections contain hundreds of items.
Collection fields You can compare collection fields to columns in excel. All information is saved in collection fields. When you create a new collection the system fields (5) automatically get added but you can add your fields to save the relevant information in the relevant format.
Permissions Permissions allow you to secure your database and only allow access to the users who require access. View the permissions sections of this blog for more information.
System fields System fields automatically get added to every collection. This can not be deleted but you can hide them.
ID - Every item has a unique ID. This can be used to easily and reliably identify an item in your collection.
Created Date - The date and time the item was created. This usually gets displayed in your current timezone.
Updated Date - The date and time the item was last modified.
Owner - The wix user id of the user who initially created the item. This can be empty if the item is created from a backend function.
Permissions
To secure your collections you need to set the right permissions. You can choose to limit the following actions:
Read (view)
Write (add)
Update
Delete
And the following groups:
Admin
Author (the user who initially created the item)
Site Member
Everyone
Wix app collections
Not all collections operate the same. As a user, you can create your own collection but Wix also automatically creates some collections for your apps. These usually only allow you to read the content.
