Adding U7 Grid Data Type as a property to a custom media item?
Is it possible to create a data type from the U7 Content Grid and add that as a property to a custom media item?
Suppose I create a media item called Carousel and a data type called Carousel Slides (which is a U7 Content Grid). Also, suppose that I have a content node, say Home and I add a media picker property, say Carousel Picker, to it. In a Razor page, how can I access the Carousel Slides content grid and loop over each item there within?
The documentation for this plugin shows that you access it using the dynamic CurrentPage.propertyName and expects that is a U7 Content Grid, but in my case it is not - it is a media picker which will return the ID for the media node that I want.
If I want to loop over the rows on Carousel Slides in a Razor page, how would I do this, since I can only access the media item by using Umbraco.TypedMedia..?
Adding U7 Grid Data Type as a property to a custom media item?
Is it possible to create a data type from the U7 Content Grid and add that as a property to a custom media item?
Suppose I create a media item called
Carousel
and a data type calledCarousel Slides
(which is a U7 Content Grid). Also, suppose that I have a content node, sayHome
and I add a media picker property, sayCarousel Picker
, to it. In a Razor page, how can I access theCarousel Slides
content grid and loop over each item there within?The documentation for this plugin shows that you access it using the dynamic CurrentPage.propertyName and expects that is a U7 Content Grid, but in my case it is not - it is a media picker which will return the ID for the media node that I want.
If I want to loop over the rows on
Carousel Slides
in a Razor page, how would I do this, since I can only access the media item by using Umbraco.TypedMedia..?is working on a reply...