Use Detail view with multiple items

Overview

Content widgets configured in Detail mode usually display the details of a single item. An alternative use of the Detail view is to register content locations for all items of a given content type on a dedicated details page, without displaying any items on that page by default.

This setup uses two widgets of the same content type on two different pages:

  • Detail widget
    A content widget that is set to display all published items and whose content view display mode is set to Detail.
    On the page, the widget does not display any content items. However, the widget registers the page as a content location for all existing items of the selected content type. As a result, the details of each item are accessible through the URL of this page.
  • Master widget
    A content widget of the same content type on another page, whose content view display mode is set to Master and which references the page with the Detail widget.
    The widget displays the list of content items. Clicking an item opens its details on the page with the Detail widget, through the registered content location.

For more information about content locations, see Locations of content items.

The following procedures use the News widget as an example. The same approach applies to other MVC content widgets, such as Blog posts, Events, or dynamic content widgets.

Configure the Detail widget

  1. Create a page that will display the details of the items. For example, News details.
  2. Open the page for editing and add a News widget to it.
  3. Click the Edit button of the widget.
  4. On the Content tab, select the option that displays all published items. For example, All published news.
  5. Click Advanced » Model.
  6. In ContentViewDisplayMode, enter Detail.
  7. Click Save.
  8. Publish the page.

As a result, the widget does not display any news items on the page, but the page is registered as a content location for all published news items.

Configure the Master widget

  1. Create or open another page that will display the list of items. For example, News.
  2. Open the page for editing and add a News widget to it.
  3. Click the Edit button of the widget.
  4. On the Content tab, select the items to display in the list.
  5. On the Single item settings tab, under Open single item in..., select Selected existing page....
  6. Click Select and select the page with the Detail widget configured in the previous procedure. For example, News details.
  7. Click Advanced » Model.
  8. In ContentViewDisplayMode, enter Master.
  9. Click Save.
  10. Publish the page.

As a result, the Master widget displays the list of news items. Clicking an item opens its details on the page with the Detail widget, through the content location registered by that widget.

Want to learn more?
Enhance your Sitefinity skills by enrolling in free training sessions. Become Sitefinity certified through Progress Education Community to strengthen your professional credentials.