Skip to content

IG in DC widget: Paging is not working properly #1284

@PepiIvanova

Description

@PepiIvanova
  1. Go to Module builder and create a module
  2. Add a field of type Related media > Images
  3. Click Continue to finalize configuring the field
  4. For Display selected items on the frontend using... select Custom from the dropdown
  5. In the Type or Virtual path of the custom widget textbox enter the full type name of the Image gallery controller: Telerik.Sitefinity.Frontend.Media.Mvc.Controllers.ImageGalleryController, Telerik.Sitefinity.Frontend.Media
  6. Click Done
  7. Click Finish
  8. Activate the module
  9. Go and create at least one dynamic content item from the newly created type
  10. Type the Title and select 5 images for Related images field
  11. Change the templateName and list settings of the Image gallery in Dynamic Content detail template from Sitefinity's administration panel -> Design -> Widget templates and open the Detail.[Name of your type]

@Html.Action("RelatedData",
"ImageGallery",
new {relatedItem = Model.Item.DataItem,
relatedDataViewModel = new RelatedDataViewModel()
{
RelatedItemType = "Telerik.Sitefinity.DynamicTypes.Model.MyModule.MyType",
RelatedFieldName= "MyRelatedImages",
RelationTypeToDisplay = "Child"
},
templateName="ImageGallery",
settingsViewModel = new ImageGallerySettingsViewModel()
{
ItemsPerPage = 2
}})

  1. Go to Pages and create a page
  2. D&D Dynamic content widget
  3. View the page and go in the details of the item

Result

2 pages are displayed instead of 3.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions