Copied to clipboard

Flag this post as spam?

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


  • Paul Sørensen 302 posts 648 karma points
    Apr 13, 2013 @ 23:18
    Paul Sørensen
    0

    umbraco.MacroEngines.DynamicXml' does not contain a definition for 'mediaCropper


    'umbraco.MacroEngines.DynamicXml' does not contain a definition for 'mediaCropper'

    Hi
    Umbraco version 6.0.2
    I have installed The Digibiz Advanced Media Picker 2.5 (DAMP 2.5)

    I have tried to copy the slideshow from the Cultiv Razor sample using this code

     

    <section id="gallery">
    <div class="pics">
    @if (Model.HasValue("carouselImages")) {
    dynamic mediaItems = Model.CarouselImages.mediaItem;
    if (mediaItems.Count() != 0)
    {
    foreach (var item in mediaItems)
    {
    var image = item.Image;
    @*
    If the type of the mediacropper is not XML (but a string) then there
    are no crops defined, so I should not try to find the crops.
    *@
    var crops = image.mediaCropper;
    if (crops.GetType().ToString() != "System.String")
    {
    <img src="@crops.Find("@name", "Homepage").url" alt="@image.nodeName" width="@image.umbracoWidth" height="@image.umbracoHeight"/><br />
    }
    }
    }
    }
    </div>
    <a href="#" id="prev"></a>
    <a href="#" id="next"></a>
    </section>

    but I get this error

    'umbraco.MacroEngines.DynamicXml' does not contain a definition for 'mediaCropper'

    Any ideas

    /Paul S

Please Sign in or register to post replies

Write your reply to:

Draft