Copied to clipboard

Flag this post as spam?

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


  • Gary Pretty 5 posts 25 karma points
    Feb 06, 2011 @ 20:37
    Gary Pretty
    0

    DAMP Image Picker in .NET User Control

    Hi,

    I am new to Umbraco was wondering if anybody could point me in the right direction here.

    I have used th DAMP image picker (http://our.umbraco.org/projects/backoffice-extensions/digibiz-advanced-media-picker) on one of my document types and use it to store multiple images. The alias for the field is simply "images".

    However, in my .Net user control when is use doc.GetProperty("images").Value it returns null.

    Can anybody tell me how I can iterate through my images stored in this field within my .Net user control?

    Any help greatly appreciated!

    Thanks

    Gary

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Mar 02, 2011 @ 20:29
    Jeroen Breuer
    0

    Hi Gary,

    It's strange that doc.GetProperty("images").Value returns null. Since Umbraco 4.5 it should return the xml as a string. Did you try Node.GetCurrent().getProperty('images').Value? Once you have the string there are some helpers you can use. See them here: http://damp.codeplex.com/SourceControl/changeset/view/68450#1765798 in the Utils region.

    You can use the following helper methods for getting data from DAMP:

    GetFileUrl

    GetImageUrl

    GetUrl

    GetImages

    GetFiles

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft