Display hierarchy of content items

Use this procedure to configure the widget to display hierarchy of content items. 

For example, you have a parent content type Countries that has child content types – Cities and Resorts.
You drop the Countries widget in the left pane of the page. In the right, you drop the Cities and the Resorts widgets.

Depending on how you want to view the details of an item, there are the following scenarios:

Open the detailed view on another page

In this scenario, you have a list of Countries on the left, when you click a country, the widgets on the right display the list of cities and the list of resorts in this country. When you click a city or a resort, you can view its details on another page.

Perform the following:
  1. Drop the Countries widget on the left, drop the Cities and the Resorts widgets on the right.
  2. Click the Edit button of the Countries widget.
  3. On the Single Item Settings, select Auto-generated page.
  4. Click Save.
  5. Click the Edit button of the Cities and the Resorts widgets.
  6. On Content tab, select From the currently open Country.
  7. On the Single Item Settings, select Selected existing page ...
    Select a page that has the Cities and the Resorts widgets.
  8. Click Save.

Open the detailed view on the same page

In this scenario, you have a list of Countries on the left, when you click a country, the widgets on the right display the list of cities and the list of resorts in this country. When you click a City, its details open on the same page. The Countries widget continues to display the selected country; the Resorts widget continues to display the list of resorts.

  1. Drop the Countries widget on the left, drop the Cities and the Resorts widgets on the right.
  2. Click the Edit button of the Cities and the Resorts widgets.
  3. On Content tab, select From the currently open Country.
  4. On the Single Item Settings, select Auto-generated page.
  5. Click Advanced button.
  6. In FilterByParentUrlContext, enter true.
  7. Click Save.
  8. Click the Edit button of the Countries widget.
  9. On the Single Item Settings, select Auto-generated page.
  10. Click Advanced button.
  11. In EnableDetailItemUrlContext, enter true.
  12. In HideListViewOnChildDetailsView, enter false.

    NOTE: If you want to hide the currently selected country when a city or resort is opened in detailed view, In EnableDetailItemUrlContext, enter false, in HideListViewOnChildDetailsView, enter true.

  13. Click Save.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Web Security for Sitefinity Administrators

The free standalone Web Security lesson teaches administrators how to protect your websites and Sitefinity instance from external threats. Learn to configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?