Copied to clipboard

Flag this post as spam?

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

  • Fernando Benitez 12 posts 32 karma points
    Nov 19, 2010 @ 06:24
    Fernando Benitez

    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 "&#x00A0;"> ]>
      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" /> 



  • dandrayne 1138 posts 2262 karma points
    Nov 19, 2010 @ 10:20

    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" /> 

    Hopefully this will sort it out


Please Sign in or register to post replies

Write your reply to: