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:
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
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
is working on a reply...