Add Lists to Display Dynamic Pages
Last updated
Last updated
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
To connect a List widget to your Dynamic Page:
Add the List widget to the page of your site on which you want it to exist. For more information, see Add Widgets.
Right-click on the List widget to open the settings menu, and click Connect to Data.
Select the collection from the Connect List to menu.
Map the fields in the collection to the elements in the List widget you want to display.
Under Connect Link to select the dynamic page. This is what creates the link between the List widget and your Dynamic Pages.
Click Done.
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:
Add the widget to the page of your site on which you want it to exist. For more information, see Add Widgets.
Right-click on the widget to open the settings menu, and click Connect to Data.
Select the collection from the Connect List to menu.
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.
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:
In the side panel, click Content, then click Collections.
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.
In the side panel, click Pages, then click +New Page.
Create a Dynamic Page from each collection you created in step 2.
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.
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.
Navigate to the categories Dynamic Page and in the side panel, click Widgets, then drag and drop the Gallery widget onto the page.
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.
Map between the category name field in the data collection (Collection A) and the category name field in the categories collection (Collection B).