top of page

Advanced features

CMS

CMS: Mirroring the Order of Items in Your Collection to Your Site's Connected Elements


Control the order in which items display in their connected elements directly from your CMS collection. When you enable 'Mirror on Site' in your collection view, connected page elements inherit the same item ordering as your view. This allows you and site collaborators to rearrange the items that appear in connected repeaters, galleries, and other elements from a saved collection view.


Since you can connect the same collection to multiple elements and pages, you may want to order the items differently across your site. This is where dataset sorts are useful. If you add a sort condition to a dataset, this sort overrides the order set in your mirrored collection view. When you enable 'Mirror on Site', any existing sorts in your datasets remain and apply to their connected elements instead of the mirrored view's order.


Screenshot of enabling Mirror on Site.


Mirroring item order between your collection view and your live site


By default, items in your collection are sorted by creation date from newest to oldest. You can control the order in which the items appear in their connected site elements from within your collection. To do so, select the collection view you want to use, add a sort to the collection or manually reorder the items, then enable the Mirror on Site toggle.


Tips:


  • You cannot add filters to a collection view if it has the 'Mirror on Site' feature enabled. Likewise, you cannot mirror the collection view’s order if the view contains a filter.

  • Keep in mind that any sorts you've added to datasets will override the order you set in your mirrored collection view.


To mirror the item order display:


  1. Go to CMS in your site's dashboard. Alternatively, you can click CMS

    CMS: Mirroring the Order of Items in Your Collection to Your Site's Connected Elements

    in your editor, then click Your Collections.

  2. Click the relevant collection.

  3. (If you have multiple collection views) Select the view at the top of your collection that you want to use to sort the items. You can also create a new view specifically used for sorting items as they appear on your live site.


Screenshot of selecting a custom collection view.

  1. Choose how you want to sort your items:

    • Add a sort condition to the collection: Automatically sort items in your collection.

      1. Click Sort at the top of the collection.

      2. Click + Add a Sort.

        Tip: Click the Edit icon

        CMS: Mirroring the Order of Items in Your Collection to Your Site's Connected Elements

        if you want to modify an existing sort condition.

      3. Click the Sort by drop-down and select the field you want to sort.

      4. Select the order in which you want the items to appear.

      5. Click Add Sort.

    • Manually reorder items: Create a custom order for your items.

      1. Make sure Table is selected as the layout type at the top of the collection.

      2. Click the Reorder icon

        CMS: Mirroring the Order of Items in Your Collection to Your Site's Connected Elements

        next to the relevant item.

      3. Drag the item up or down to reorder it in the list.

      4. Repeat these steps to finish reordering the items.

  2. Click Mirror on Site at the top of the collection.

  3. Enable the toggle next to Mirror item order on the site.


Screenshot of enabling the Mirror on Site toggle.


FAQs


Click below for answers to common questions about mirroring your collection's order.


Yes. In your collection settings, you can turn on the Enable drafts toggle. This adds a Status field to your collection where you can set individual items as 'Draft'. These items do not get read by the dataset, so they cannot appear on your live site.

You can set schedules that automatically change items between 'Published' and 'Draft' at specific dates and times. You can also save new items and edits as drafts until you publish them.

Learn more about:

Keep in mind that hiding, showing, or reordering fields in your collection view does not affect whether they can be connected to your page elements.


No, you cannot add a filter to a collection view that has the 'Mirror on Site' feature enabled. Similarly, if the collection view contains a filter, you can't enable 'Mirror on Site' for it. However, you can create a new collection view without any filters and enable 'Mirror on Site'.


No. Filters added in your collection view only affect how you view and manage content within the collection. They do not apply to your live site's connected elements or impact how content is displayed on your site.

If you want your live site's item order to match your collection view, you can use the 'Mirror on Site' feature. However, you cannot add filters to views that are being mirrored on your site, and you cannot enable mirroring on collections that already have filters applied to them.

If you want to exclude items from appearing on your live site, you can add filters to the dataset that connects to the elements that display the content.


When you import a CSV file to your collection, the newly imported items are added to the top of your collection.


You can enable the 'Mirror on Site' feature with any collections you've created that have content appearing on your site, including Wix app collections.

Currently, it is not possible to enable 'Mirror on Site' with external collections and Wix Blocks collections.


If you delete a collection view that has mirroring enabled, the order on the site reverts back to the order in which the items were created. Keep in mind that any sort conditions you've added to datasets continue to override the order set in your collections.


When you're using a 'Text' field type that contains both letters and numbers, the system applies an alphabetic sorting order. This means that 'Text' field values are sorted in an alphabetic sequence. For example:

  • P101

  • P120

  • P1200

  • P123

While this is an expected behavior for an alphabetic sorting logic, you might prefer to sort these values in a numerical sequence.

To achieve this, you can use a 'Number' field type without any letters. By using a 'Number' field type, the system will sort the same set of numbers as follows:

  • 101

  • 120

  • 123

  • 1200

This order aligns with a numerical sequence, offering a more intuitive understanding of your sorted data.

Learn how to:


Random order sorting is great when you want your visitors to see a new mix of items each time. For example, use it with testimonial galleries, featured products, or any collection you want to display in a new way every visit.

Use the random order sort when you want your site visitors to see your items in a new, unpredictable order every time. This is great for testimonial galleries, featured products, or any collection you want to display differently on each visit. For a fixed or custom sequence, use standard sorting options or the “Mirror on Site” feature.

Learn more about sorting live site content with datasets .


Need A Professional Website?
Contact Us 
Today!

I'm a paragraph. I'm connected 

I'm a paragraph. I'm connected 

I'm a paragraph. I'm connected 

I'm a paragraph. I'm connected 

I'm a paragraph. I'm connected 

I'm a paragraph. I'm connected 

wix experts
Graphic2Traffic web design
©
bottom of page