Copied to clipboard

Flag this post as spam?

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


  • MRavensholt 19 posts 39 karma points
    Feb 18, 2011 @ 10:18
    MRavensholt
    0

    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

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Feb 18, 2011 @ 10:43
    Jeroen Breuer
    0

    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

  • MRavensholt 19 posts 39 karma points
    Mar 16, 2011 @ 10:16
    MRavensholt
    0

    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.

     

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Mar 16, 2011 @ 11:00
    Jeroen Breuer
    0

    It should probably still work without ImageGen, but the images won't be resized. You could do that yourself :).

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft