Enterprise Solution: Sharing CMS Collections with Sites and Templates

6 min read
Coordinate content across multiple sites and templates and manage data effortlessly with shared CMS (Content Management System) collections. With shared collections, your enterprise gains a cohesive experience, streamlined data handling, and an elevated digital presence. 

For example, picture your enterprise collaborating with numerous partners, each showcasing your products on their websites. Converting your catalog into a shared collection lets you connect elements across these sites to the same collection. This ensures that updates you make as the CMS manager instantly affect all these websites, guaranteeing consistent, current content that reinforces your brand's credibility.

Another example use case is to visualize your enterprise's lineup of marketing pages, each featuring lead generation forms. Embracing shared collections consolidates data from various sites into a central hub. This empowers you to efficiently manage and analyze leads, optimizing your marketing strategy. The payoff is a focused and impactful outreach, fueling your enterprise's expansion.

Dive in to revolutionize content management across your enterprise sites and templates. 
A screenshot of shared collections in an Enterprise account.

Sharing CMS collections with other sites or templates

CMS collections in the Wix Studio enterprise solution are account-based and not tied to any particular sites. Account owners, Co-owners, and teammates with enterprise dashboard permissions for "Manage Organization CMS" can share collections to make them available across multiple sites or templates. 

Once a collection is shared, the site or template designer can bind its content to repeaters, dynamic pages, inputs, and other elements. When sharing, you can choose to only share certain collection items across the other sites or templates.

To share a CMS collection with another site or template:

  1. Go to CMS in your Enterprise dashboard.
  2. Click the collection you want to share. 
  3. Click Share With Sites at the top. 
  4. Click Sites or Templates at the top to choose which type to share the collection with. 
  5. Enable the Share collection toggle next to the relevant site or template.
  6. (If necessary) Click Share in the popup message. 
  7. (Optional) Click the All items shared drop-down next to the toggle to deselect any items you do not want to share, then click Close
  8. (Optional) Repeat steps 5-8 to share with more sites or templates. 
  9. Click Done.
A screenshot of sharing a collection with multiple templates.

Working with Wix App Collections in Your Code

You reference the collections that Wix Apps add to your site similar to how you reference collections you create yourself, with one difference. 

To reference a collection in your code that you created yourself, you just use the collection name in the code. For example, this code retrieves an item with an ID of 00001 from the collection named myCollection:
1wixData.get("myCollection", "00001");
To reference a collection that a Wix App added to your site you need to also include the App name in the path of the collection name. For example, let's say you also want to retrieve an item with an ID of 00001, but this time from the PrivateMembersData collection inside the Members database.
Screenshot of Wix App Collections in the Editor
In this case, you need to include Members in the path for the collection name, like this:
1wixData.get("Members/PrivateMembersData", "00001");
You can also use Wix Data to add and update information in some Wix App collections. For example: 
1let collectionToInsert = {
2  title: "New Collection",
3};
4
5wixData.insert("Portfolio/Collections", collectionToInsert).then((item) => {
6  console.log(item);
7});

FAQs

Click below for answers to frequently asked questions about shared collections. 

Did this help?

|