Add Lists to Display Dynamic Pages

Modified on Thu, 17 Nov 2022 at 04:59 AM

The final step in creating Dynamic Pages is to create a list of links to navigate to the different pages. This is done by adding a List widget and connecting it to your Dynamic Page.

Note

You can also connect a table widget to the same collection that the Dynamic Page is connected to in order to create a table where each row links to different pages. To learn more, see Table Widget

Connect List Widget to Dynamic Page

To connect a List widget to your Dynamic Page:

  1. Add the List widget to the page of your site on which you want it to exist. For more information, see Add Widgets.
  2. Right-click on the List widget to open the settings menu, and click Connect to Data.
  3. Select the collection from the Connect List to menu.
  4. Map the fields in the collection to the elements in the List widget you want to display.
  5. Under Connect Link to select the dynamic page. This is what creates the link between the List widget and your Dynamic Pages.
  6. Click Done.

Filter & Sort

When connecting widgets to a collection, you can filter and sort the collection to display only what you want. This feature allows you to control the number of rows the widget displays, filter according to specific text fields, and sort the list in ascending or descending order.

Note

You can filter and sort the collection in every widget that can be connected to a collection. For more information, see Connected Data.

To add filters and sort:

  1. Add the widget to the page of your site on which you want it to exist. For more information, see Add Widgets.
  2. Right-click on the widget to open the settings menu, and click Connect to Data.
  3. Select the collection from the Connect List to menu.
  4. Under Filter & Sort, you have the following options:
    • Items to Display. Select the number of items you want to display (for example, All, or 2).
    • Filters. Click Add Filter, and select the fields and values you want to filter by.
    • Note

      Filtering works according to exact values, and you may filter according to multiple values per field.

    • Sort. Click Add Sort, and select how you would like to sort the collection.
    • Note

      For numbers to be sorted correctly, the field must be numeric.

Tip

If you are having difficulty filtering and sorting correctly, check if the field is rich text. It is possible there is formatting on the text, even if you cannot see it. It is recommended you convert the field to plain text.

Dynamic Filters

You can use Dynamic filters to filter widgets that are connected to collections in dynamic pages. This allows you to display only the content that is relevant to a page item. Dynamic filters are available for every widget that connects to a collection when added to dynamic pages, including: Gallery, List, Accordion, Slider, and Custom widgets and are accessible from the Connect Data popup.

To use Dynamic filters:

  1. In the side panel, click Content, then click Collections.
  2. Click +Create Collection and create 2 collections:
    • Data collection. Contains your data with a category name field. In step 9 this collection is referenced as Collection A.
    • Categories collection. Contains all the categories and their details (category name, image, etc). In step 9 this collection is referenced as Collection B.
  3. In the side panel, click Pages, then click +New Page.
  4. Create a Dynamic Page from each collection you created in step 2.
  5. Navigate to a regular page of your choice and in the side panel, click Widgets, then drag and drop the Gallery widget onto the page.
  6. Right-click the Gallery widget to open the settings menu, and click Connect to Data. Connect it to the categories collection you created in step 2. Map the link field to its Dynamic Page.
  7. Navigate to the categories Dynamic Page and in the side panel, click Widgets, then drag and drop the Gallery widget onto the page.
  8. Right-click the Gallery widget to open the settings menu, and click Connect to Data. Connect it to the data collection you created in step 2. Before closing the Connected Data popup, open the Filter & Sort tab and in the Dynamic Filter section click +Add Filter.
  9. Map between the category name field in the data collection (Collection A) and the category name field in the categories collection (Collection B).

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article