Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Iain Maitland 3 posts 24 karma points
    Jan 05, 2015 @ 19:05
    Iain Maitland
    0

    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..?

Please Sign in or register to post replies

Write your reply to:

Draft