Example: Eval Method with related media Items

By default, related images are displayed using an Images view that is automatically generated in the item template for dynamic modules. For static modules, you must manually insert the Images view. If you need to display the images simply in a Repeater, you can use the Related data API and add the following code to the template:

NOTE: You must import the following namespace: 

  • <%@ Import Namespace="Telerik.Sitefinity.RelatedData" %>
  • <%@ Import Namespace="Telerik.Sitefinity.Libraries.Model" %>

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?