Skip to content

Use MVC Image gallery widget to display the related images of a dynamic item

Georgi Mateev edited this page Jun 10, 2015 · 24 revisions

In this article we will demonstrate how to generate a detail template for the MVC Dynamic content widget that renders an MVC Image gallery widget inside itself. The gallery widget will display the related images of the dynamic item that is shown in the details view.

##Create a related images field##

  1. Go to Sitefinity's administration panel -> Administration-> Module builder and create a dynamic type. For more information how to use the Module builder, see Dynamic modules and the Module Builder
  2. In your dynamic type edit window, click the Add a field... button.
  3. In the Add a field dialog enter a name for your field, set it to be of type Related media and select Images in the field What kind of media this field will manage?.
    For more information how to work with related data, see Content relations: Related data
Clone this wiki locally