But it doesn't work. I can find the Id of the ImageFolder, but I can't fetch the children. The list is empty. I've tried to change the AddChildNodes to for-each through Media instead of Nodes, but this doesn't work either :(
Any ideas of what I need to rewrite to get the code to work?
I wish I could, but the designit gallery uses the ImageGen package, and I want to do this in plain .net using only the umbraco API. It must be possible, and it really shouldn't be that hard.
Image Gallery in .NET instead of XSLT (using a repeater to show the images from image library)
I'm trying to create a .net image gallery.
I need to fetch the images from a folder inside the image library.
The code looks like this so far: http://code-bin.homedns.org/1131
But it doesn't work. I can find the Id of the ImageFolder, but I can't fetch the children. The list is empty.
I've tried to change the AddChildNodes to for-each through Media instead of Nodes, but this doesn't work either :(
Any ideas of what I need to rewrite to get the code to work?
Best regards,
Martin
You can use the Designit gallery package for this: http://our.umbraco.org/projects/website-utilities/designit-gallery-package. The source code is available at http://umbgallery.codeplex.com/SourceControl/list/changesets. It's written in .NET.
Jeroen
I wish I could, but the designit gallery uses the ImageGen package, and I want to do this in plain .net using only the umbraco API.
It must be possible, and it really shouldn't be that hard.
It should probably still work without ImageGen, but the images won't be resized. You could do that yourself :).
Jeroen
is working on a reply...