Copied to clipboard

Flag this post as spam?

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


  • Martin Holm 18 posts 37 karma points
    Aug 01, 2011 @ 22:26
    Martin Holm
    0

    Image gallery

    Hi guys

    i have installed the Imagegen and the designit gallery package. I am having some trouble in making it work correctly.

    It is supposed to list all images from a folder in the media section into a lightbox gallery, i have got the lightbox effect, but the it never displays an image - only the preloader.

    and the thumbnail is only listed as the title tag, and no image here either.

    I simply don't know what is wrong here.

    <a id="ContentPlaceHolderDefault_cp_content_ShowGallery_1_repImages_hlImage_0" title="1" href="/umbraco/ImageGen.ashx?image=/media/308/1.jpg&amp;width=350&amp;height=350&amp;constrain=true"><img id="ContentPlaceHolderDefault_cp_content_ShowGallery_1_repImages_img_0" src="/umbraco/ImageGen.ashx?image=/media/308/1.jpg&amp;width=100&amp;height=100&amp;constrain=true" alt="1" /></a>
        

    It seems to me as it finds the image, but then i dont understand why it isn't displayed on the site.

    Hope that someone can help me out with this one? :D

    the temporary site is http://web507447.ta31.talkactive.net/butikken.aspx

    Thanks

    Martin

     

     

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Aug 01, 2011 @ 22:49
    Tom Fulton
    0

    It looks like the gallery package is trying to reference ImageGen under /umbraco/ImageGen.ashx, but in a later version it was moved to the root of the site (/ImageGen.ashx).

    So probably what you'll need to do is edit the Gallery's XSLT File (Developer -> XSLT), find any references to /umbraco/ImageGen.ashx and replace with /ImageGen.ashx

    Hope this helps,
    Tom

  • Martin Holm 18 posts 37 karma points
    Aug 02, 2011 @ 09:23
    Martin Holm
    0

    Hi Tom

    I have to take your word for it because programming isn't my strong side, but the gallery package does not contain a XSLT File. Only 2 .ascx a .dll and the rest is .js and css. Both in my downloaded folder and in the XSLT folder in umbraco. So i don't know where to find and change paths you mentioned?

    Any suggestions? :)

    regards

    Martin

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Aug 02, 2011 @ 14:02
    Tom Fulton
    0

    Hi Martin,

    Sorry, I assumed it was using an XSLT Macro but it looks like it's a .NET Usercontrol.  From what I can tell it's hardcoded to use /umbraco/ImageGen.ashx in the codebehind and there doesn't appear to be a way to change it without re-compiling the source.  If you have Visual Studio you could do that by downloading the source code, changing the path in the ShowGallery.ascx.cs file, re-compiling and copying the DLL to your /bin/ folder.

    Otherwise you might be able to get away with just moving/copying ImageGen.ashx to the /umbraco/ folder.

    -Tom

  • Martin Holm 18 posts 37 karma points
    Aug 03, 2011 @ 10:04
    Martin Holm
    0

    Hi Tom

    I don't have visual studio, but can i change it in another code-editor?

    I tried moving the ImageGen.ashx, but that didn't work :(

    Martin

  • Martin Holm 18 posts 37 karma points
    Aug 03, 2011 @ 12:54
    Martin Holm
    0

    Hi Tom

    I solved the problem.. Tried installing imagegen manually, and now somehow it works..

    Thanks alot for your help :)

    Cheers

Please Sign in or register to post replies

Write your reply to:

Draft