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.
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.
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.
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.
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
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?
Hi James
Did you find an answer to this?
Thanks,
Alex
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
Thanks, I'll see what I can figure out otherwise I may need to do the same.
I imagine it's just a small bug in the XSLT but I just didn't have the time to investigate it.
Cheers
Yup, found it!
...should be...
$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?!
Just a small remark - actually this code:
would work in v4.5 (not v4.5.x), because of a bug in the media XML :)
/Kim A
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
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
Hi David
Which version of Umbrco you are using?
Alex
4.7.0
I have the same issue. Have someone solved this?
Thanks for your feedback.
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!
hi
Images are not display only Image names are displaying in the site...
Thanks
sethu
Hi Sethu, did you look at the answer on page 1?
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.
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>&height=400&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>&height=80&compression=100</xsl:text>
</xsl:attribute>
</img>
</a>
</li>
</xsl:if>
</xsl:for-each>
</ul>
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>&height=400&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>&height=80&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
is working on a reply...