I'm trying to make an image carousel (slick slider) with the Block List, but when I make the Partial View for the Element Type, the BlockListItem throws errors like "no definition for Media", so I can't get it to render the images the way it's done in the documentation and on the forum.
What I want for the carousel is client logos with links to the clients' sites and optionally an alt text.
Any ideas?
By the way, I have only worked with Umbraco once before several years ago, so very new to this. I'm used to working in Wordpress.
Image carousel - Block List - Umbraco 11
I'm trying to make an image carousel (slick slider) with the Block List, but when I make the Partial View for the Element Type, the BlockListItem throws errors like "no definition for Media", so I can't get it to render the images the way it's done in the documentation and on the forum.
What I want for the carousel is client logos with links to the clients' sites and optionally an alt text.
Any ideas?
By the way, I have only worked with Umbraco once before several years ago, so very new to this. I'm used to working in Wordpress.
Hi Winnie,
try changing your inherits line to
It doesn't work. It gives this error:
This is my code:
shouldn't Model.Media be content.CarouselImage? (that is your media picker)
Great, Thank you! It works perfectly.
is working on a reply...