Display related parent items

Related data API gives the users the ability to display items related to a particular item on the frontend using the following extension method:
public static IList GetRelatedParentItemsList(this object item, string parentItemsTypeName, string parentItemProviderName = null, string fieldName = null)

The method is located in Telerik.Sitefinity.RelatedData namespace. The following code example of the Presentations widget template demonstrates how parent items can be displayed using a Repeater control:

NOTE: You must import namespace <%@ Import Namespace="Telerik.Sitefinity.RelatedData" %>

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?