Hi, I have created a xslt and a macro for outputting images on a page but I can't find out how to fix this issue.'
Im using umbraco version : v 4.7.0
This looks like the same issue as http://our.umbraco.org/forum/developers/api-questions/22007-Image-cachload-inconsistency but the fix that was proposed don't work for me. The image will appear after republish of whole site but disappear again after some time. I've tried some different settings with Cache on the macro with no success. When it isn't working it only gives me empty space. When ithe output is correct it gives me : <img src="/media/493/burim_lite.jpg" width="100" height="150" alt="Burim _lite" /> .
problem with image caching
Hi, I have created a xslt and a macro for outputting images on a page but I can't find out how to fix this issue.'
Im using umbraco version : v 4.7.0
This looks like the same issue as http://our.umbraco.org/forum/developers/api-questions/22007-Image-cachload-inconsistency but the fix that was proposed don't work for me. The image will appear after republish of whole site but disappear again after some time. I've tried some different settings with Cache on the macro with no success. When it isn't working it only gives me empty space. When ithe output is correct it gives me : <img src="/media/493/burim_lite.jpg" width="100" height="150" alt="Burim _lite" /> .
xslt source :
<xsl:if test="$imageFieldValue !=''">
<xsl:variable name ="mediaItem" select="umbraco.library:GetMedia($imageFieldValue, '0')"/>
<xsl:if test="$mediaItem!=''">
<img>
<xsl:attribute name="src">
<xsl:value-of select="$mediaItem/umbracoFile" />
</xsl:attribute>
<xsl:attribute name="width">
<xsl:value-of select="$mediaItem/umbracoWidth" />
</xsl:attribute>
<xsl:attribute name="height">
<xsl:value-of select="$mediaItem/umbracoHeight" />
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="$mediaItem/@nodeName" />
</xsl:attribute>
</img>
</xsl:if>
</xsl:if>
I have added a .NET controll which I use for outputting images on another page and that works. Anyone have an idea of what could be wrong ?
When I come home I will look through the umbraco log to see if there are any error messages there.
is working on a reply...