I have the big problem, i loaded the BWSP, When I load image for the news in the NewsArea, the image does not load, watching more, I realized that the configuration is xlts file called NewsImage, I wonder if anyone can help me I do not see why the image is loading, observing in the firebug, I think it is charging correctly the source of the image, below is the code thousand thanks to those who can help.
Images in News Page not loaded
Hello Everybody...
I have the big problem, i loaded the BWSP, When I load image for the news in the NewsArea, the image does not load, watching more, I realized that the configuration is xlts file called NewsImage, I wonder if anyone can help me I do not see why the image is loading, observing in the firebug, I think it is charging correctly the source of the image, below is the code thousand thanks to those who can help.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt"
xmlns:umbraco.library="urn:umbraco.library"
exclude-result-prefixes="msxml umbraco.library">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:param name="currentPage"/>
<xsl:template match="/">
<xsl:if test="$currentPage/newsImage != ''">
<img alt="{$currentPage/@nodeName}" class="news_image">
<xsl:attribute name="src">
<xsl:value-of select="umbraco.library:GetMedia($currentPage/newsImage, false() )/imagenes/noticias/umbracoFile" />
</xsl:attribute>
</img>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Hi Fernando
What if you use this?
<xsl:if test="$currentPage/newsImage != ''">
<img alt="{$currentPage/@nodeName}" class="news_image">
<xsl:attribute name="src">
<xsl:value-of select="umbraco.library:GetMedia($currentPage/newsImage, false() )/umbracoFile" />
</xsl:attribute>
</img>
</xsl:if>
Hopefully this will sort it out
Dan
is working on a reply...