Copied to clipboard

Flag this post as spam?

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


  • Mr A 216 posts 278 karma points
    Oct 12, 2012 @ 12:47
    Mr A
    0

    umbraco.library does not contain a definition for ToDynamicXml

     

    Hi I am using Damp in one of my usercontrols and having problems using dynamic xml, what I want is the cropped image for each damp media item in code behind below is the code:

     string fullDamp = item.GetProperty("HomeVisual").Value; // this returns the fulldamp mediaItem

      I tried using damp helper but i get an error umbraco.library does not contain a definition for ToDynamicXml

    Trace.Warn("cropped File: " + DAMP_Helper.GetImageCropperUrl(library.ToDynamicXml(fullDamp), "productOne"));

    I have also declared namespace at the beginging of the usercontrol:

    using umbraco.MacroEngines;
    using System.Xml;
    using DigibizAdvancedMediaPicker;
    using umbraco.MacroEngines.Library;

     

    Any ideas where i am getting it wrong or any suggestions how can i get the cropped image for each item, Thanks I am using Umbraco 4.9.

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies