Dynamic list
Overview
The Dynamic list widget is an out-of-the-box ASP.NET Core forms widget that you can use to render Sitefinity CMS content in forms. This is a single widget that can work with both static and dynamic content at the same time.
Select content to display
In this section, you choose the content to be displayed by the widget.
- In the Content type dropdown box, select the module where you want to display content from.
The list includes all built-in and dynamic modules, except for media modules content blocks, and pages.
- If the selected content type has more than one content providers, in Source, you can choose which provider you want to display items from.
- In the Selection range radio button, you can select which content to display, based on their publication date.
There are the following filtering options:
- All published items
- From currently open parent
This option is available only for hierarchical static and dynamic modules, such as Blog posts or Events.
- Selected items
Click
(Select <type>) icon and select an item that you want to include in the list of items.
Repeated this step for as many single items as you want to include in the list.
- Under Filter by <parent type>, you can select patent items whose children you want to display.
This option is available for hierarchical items only.
- Click
(Select <type>) icon.
- Select the items whose children you want to add to the list.
- Repeated this step for as many single items as you want to include in the list.
- Under Filter by category, you can filter the selected items by the category where they are classified.
Click
(Select categories) and select the categories that you want to filter by.
- Under Filter by tag, you can filter the selected items by the tags they are tagged with.
Click
(Select tags) and select the tags that you want to filter by.
NOTE: The values for a single filter are interpreted as a logical OR. This means that, if you have selected two tags – tag1 and tag2, then the items tagged with either tag1 or tag2 are displayed on the frontend.
- In Date published dropdown box, select one of the following:
- Any time
- Last…
Enter a number and select between day(s), week(s), month(s), years(s).
- From – to
Enter the exact date range of publication dates.
Items that are published during this range, will be displayed in the widget.
- In List template, you can change the originally selected template.
Choose between:
- Cards list
- List with image
- List with summary
- In Field mappings, map the fields in the widget to the fields of the selected content type.
For example, as Publication date for news, you can choose to display the creation date or the date that the news was last modified.
NOTE: If you apply multiple filters – for example, by tags and by parent, the filters are applied by using a logical AND. This means that all the conditions must be true – for example, News items tagged with tag Sports and Weather AND having been published in the last week.
You can change the logical operator to OR from the advanced settings of the widget.
For more information, see Advanced widget settings section below.
Configure the List settings
In this section, choose how to display the selected items on the page.
- In Number of list items, you can select between:
- Use paging
Enter the number of items per page that you want to display.
- Show limited numbers
Enter the total number of items that you want to display.
- In Sort items, select how to sort the items in the list.
Choose between:
- Last published
- Last Modified
- Alphabetically – ascending or descending
- As set in Advanced mode.
You can sort items, using custom expressions.
For more information, see Advanced widget settings section below.
Configure the Single item settings
Single item settings define how individual items are displayed. Choose one of the following options:
- Open single item in...
Select one of the following:
- Auto-generated page
When you click an item, it is displayed in an automatically generated page with the same layout as the list page.
- Selected existing page…
From the list of existing pages, select the specific page in which the item will be displayed.
NOTE: To display an item in a page, the page must have a Content list widget, configured with the same content type, added in advance.
- In Single items template dropdown, select the template that you want to use to display the item, when it is clicked in the list of items.
Advanced widget settings
To open the Advanced settings for Dynamic list widget, in the upper-right corner, click
(Advanced settings).
For more information, see Advanced widget settings.
Content locations
The Dynamic list widget supports content locations automatically.