Creating carousel using view and controller renderings
In the previous recipe, you learned how to use a custom model to pass data to the view using RenderingModel
. In this recipe, we will create carousel using controller rendering and view rendering.
How to do it…
We will first create a template to generate carousel slides:
- Create a
Carousel Slide
template, as shown in the following image. Set the Source property of theImage
field so that a user can pick carousel images directly from the source media folder. Do the same for theLink Item
field. - Create some carousel slide content items with appropriate field values.
- We want to show some selected carousel ...
Get Sitecore Cookbook for Developers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.