DevReach site: Modify the Detailed view of the Sessions template

The Detailed view widget template is used to display a single session in detail. You reach the Detailed view after you click a session the List view.

Open the Sessions Detailed view widget template for editing and paste the following code:

NOTE:
  • DataSource='<%# Eval("Speakers")%>' – sets all related speakers as a data source of the repeater.
  • <%# RelatedDataExtensions.GetDefaultUrl(Container.DataItem) %> - returns the default location of the item in the frontend – its canonical URL.
  • <%# Container.DataItem.GetItemsWithSameTaxons("Tags", "Telerik.Sitefinity.DynamicTypes.Model.DevReach.Session", 0, 5) %> – returns the first 5 sessions having the same tag as the current session.
  • <%# Container.DataItem.GetRelatedItemsCountByField("Attendees") %> - gets the count of the related items by the related data field name. The Attendees relation is also used to show the count of the attendees of a current session.

In order to use the above mentioned extension methods, you must add the following import: <%@ Import Namespace="Telerik.Sitefinity.RelatedData" %>

The following screenshot displays the final looks of the Session widget in detailed view:

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

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. 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?