Copied to clipboard

Flag this post as spam?

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


  • James 6 posts 26 karma points
    Oct 04, 2010 @ 14:18
    James
    0

    No images displaying

    Hi,

    I have successfully installed the 1.2 package for umbraco 4.5.2, however, when I view the page no images appear?

    The media folder it is pointing to contains 2 images (png).

    It renders the heading/description and even the "click to view images" link but the images do not display.

    Any ideas?

  • Alex Campbell 45 posts 67 karma points
    Jan 26, 2011 @ 23:28
    Alex Campbell
    0

    Hi James

    Did you find an answer to this?

    Thanks,

    Alex

  • James 6 posts 26 karma points
    Jan 27, 2011 @ 09:43
    James
    0

    Hi Alex,

    I am currently not working on that particular project at the moment. However, thinking back I think I just decided to go with another plugin so no I never found an answer to this.

    Regards

    James

  • Alex Campbell 45 posts 67 karma points
    Jan 27, 2011 @ 12:32
    Alex Campbell
    0

    Thanks, I'll see what I can figure out otherwise I may need to do the same.

  • James 6 posts 26 karma points
    Jan 27, 2011 @ 12:33
    James
    0

    I imagine it's just a small bug in the XSLT but I just didn't have the time to investigate it.

    Cheers

  • Alex Campbell 45 posts 67 karma points
    Jan 29, 2011 @ 12:16
    Alex Campbell
    0

    Yup, found it!

            <ul class="items">
              <xsl:for-each select="$imageFolderContents/Folder/Image">

    ...should be...

            <ul class="items">
              <xsl:for-each select="$imageFolderContents/Image">

    $imageFolderContents is an array of urls and so has no "Folder".

    Isn't it always the simple things that are the most frustrating and hardest to find?!

  • Kim Andersen 1447 posts 2194 karma points MVP
    Jan 29, 2011 @ 15:29
    Kim Andersen
    1

    Just a small remark - actually this code:

    <xsl:for-each select="$imageFolderContents/Folder/Image">

    would work in v4.5 (not v4.5.x), because of a bug in the media XML :)

    /Kim A

  • LeaUK 34 posts 55 karma points
    May 24, 2011 @ 21:37
    LeaUK
    0

    Using Umbraco 4.7 

    Thanks Alex, perfect.  Although the xslt file throws an exception on save in which I had to 'skip errors (ignor testing) to get it to save'.

    System.OverflowException: Value was either too large or too small for an Int32. 

    Dont forget to copy/move ImageGen.ashx which is installed into the website root to root/umbraco - that got me going for a while.  

    Cheers

    Lea

  • David 57 posts 80 karma points
    May 31, 2011 @ 22:35
    David
    0

    Its easy enough to get around the System.OverflowException with the "ignore errors" checkbox.  However, I cannot get images to show even with the above modifications.   The following change produces no images. 

     class="items">
             
    select="$imageFolderContents/Image">

     

    If I throw this <xsl:value-of select="$imageFolderContents"/> into the "main_gallery_title" I get the following.

    /media/2974354/55555_102.gifgif113312/media/2974357/55555_129.gifgif69288/media/2974360/55555_130.gifgif108396/media/2974363/55555_157.gifgif102921

     

    What am I missing?  I know its something simple that its stupid.  The images are obviously being found, but not displayed. I've tried various things in the for-each to produce the image to no avail.

    Thanks

     

     

  • Alex Campbell 45 posts 67 karma points
    May 31, 2011 @ 23:44
    Alex Campbell
    0

    Hi David

    Which version of Umbrco you are using?

    Alex

  • David 57 posts 80 karma points
    Jun 01, 2011 @ 14:19
    David
    0

    4.7.0

  • lele 100 posts 417 karma points
    Jun 16, 2011 @ 09:02
    lele
    0

    I have the same issue. Have someone solved this?

    Thanks for your feedback.

  • saintwright 69 posts 77 karma points
    Aug 22, 2011 @ 05:03
    saintwright
    0

    I had the same issue - no images showing, I went in and removed the 'Umbraco' from 2 places:

    <xsl:text>/umbraco/ImageGen.ashx?image=</xsl:text>

    TO

    <xsl:text>/ImageGen.ashx?image=</xsl:text>

     

    And changed <xsl:for-each select="$imageFolderContents/Folder/ Image"> to <xsl:for-each select="$imageFolderContents/Image">

     

    Then my images showed up!

  • sethu 15 posts 35 karma points
    Oct 21, 2011 @ 17:32
    sethu
    0

    hi

    Images are not display only Image names are displaying in the site...

    Thanks

    sethu

  • Alex Campbell 45 posts 67 karma points
    Oct 21, 2011 @ 17:34
    Alex Campbell
    0

    Hi Sethu, did you look at the answer on page 1?

  • Alex Campbell 45 posts 67 karma points
    Oct 21, 2011 @ 17:38
    Alex Campbell
    0

    Saintwright

    Yes, the "umbraco" in the path would not be valid after upgrading ImageGen. It puts the file in the root rather than where it used to be in the Umbraco folder. 

    I think there is a note in the instal instruction for the upgrade to move the ImageGen.ashx file into the umbraco folder which presumably is to stop exactly this type of thing happening.

  • Kurt 1 post 21 karma points
    Nov 29, 2011 @ 14:44
    Kurt
    0

    Is anything different with 4.7.1?  I must be missing something because it's not even seeing my images.  using jqgallery 1.2  I have moved the imagegen to the umbraco folder and this is what I have for my XSLT.  I've tried all the aforementioned solutions to no avail.  The images are in a folder called gallery under the root media node

    <ul class="items">
              <xsl:for-each select="$imageFolderContents/Image">
                <xsl:if test="string(current()/File/umbracoFile) != ''">
                  <li>
                    <a>
                      <xsl:attribute name="href">
                        <xsl:text>/umbraco/ImageGen.ashx?image=</xsl:text>
                        <xsl:value-of select="File/umbracoFile" />
                        <xsl:text>&amp;height=400&amp;compression=100</xsl:text>
                      </xsl:attribute>
                      <img alt="{current()/@nodeName}">
                        <xsl:attribute name="src">
                          <xsl:text>/umbraco/ImageGen.ashx?image=</xsl:text>
                          <xsl:value-of select="File/umbracoFile" />
                          <xsl:text>&amp;height=80&amp;compression=100</xsl:text>
                        </xsl:attribute>
                      </img>
                    </a>
                  </li>
                </xsl:if>
              </xsl:for-each>
            </ul>

  • Kim Andersen 1447 posts 2194 karma points MVP
    Dec 05, 2011 @ 21:11
    Kim Andersen
    0

    Hi Kurt

    Could you try removing the File/ from your code. all of the palces you use it. Meaning it would look something like this:

    <ul class="items">
              <xsl:for-each select="$imageFolderContents/Image">
                <xsl:if test="string(current()/umbracoFile) != ''">
                  <li>
                    <a>
                      <xsl:attribute name="href">
                        <xsl:text>/umbraco/ImageGen.ashx?image=</xsl:text>
                        <xsl:value-of select="umbracoFile" />
                        <xsl:text>&amp;height=400&amp;compression=100</xsl:text>
                      </xsl:attribute>
                      <img alt="{current()/@nodeName}">
                        <xsl:attribute name="src">
                          <xsl:text>/umbraco/ImageGen.ashx?image=</xsl:text>
                          <xsl:value-of select="umbracoFile" />
                          <xsl:text>&amp;height=80&amp;compression=100</xsl:text>
                        </xsl:attribute>
                      </img>
                    </a>
                  </li>
                </xsl:if>
              </xsl:for-each>
            </ul>

    Btw. what output do you get from the above piece of code?

    /Kim A

Please Sign in or register to post replies

Write your reply to:

Draft