I am very new to Umbraco, infact I was given the Umbraco CMS to do an upgrade from 4.5.2 to 4.7.0. The upgrade went fine except for the slideshow and the images now showing up on the top background area of the base page and the child pages respectively. When I click to view the path for background image only on the browser (I use either IE or firefox) to my surprise got an HTTP 404 error stating that the image cannot be displayed since the path is not correct. The following was the difference I saw:
whereas in 4.7.0: localhost/~/media/foldername/backgroundimage.png
When I viewed the source for the base page template saw that a content place holder control is called. On further looking into the matter, I landed on an xslt file called mainslideshow which had the following:
In the line above where I have higlighted in bold, how can I check whether the $currentpage parameter is correct or not?
I would be grateful of you guys could help me out on this since I do not have much experience on the XSLT but capable of understanding and making changes!!
Image path not correct for TopBackgroundArea
Hi,
I am very new to Umbraco, infact I was given the Umbraco CMS to do an upgrade from 4.5.2 to 4.7.0. The upgrade went fine except for the slideshow and the images now showing up on the top background area of the base page and the child pages respectively. When I click to view the path for background image only on the browser (I use either IE or firefox) to my surprise got an HTTP 404 error stating that the image cannot be displayed since the path is not correct. The following was the difference I saw:
4.5.2: localhost/media/foldername/backgroundimage.png
whereas in 4.7.0: localhost/~/media/foldername/backgroundimage.png
When I viewed the source for the base page template saw that a content place holder control is called. On further looking into the matter, I landed on an xslt file called mainslideshow which had the following:
<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" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets"
exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets ">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:param name="currentPage"/>
<xsl:template match="/">
<!-- Generate the front page slideshow. -->
<!-- Uses the Cycle jquery plugin - generates a div section for each slide. -->
<div id="centerSlideshow">
<xsl:variable name="isIE6"
select="count(Exslt.ExsltRegularExpressions:match(umbraco.library:RequestServerVariables('HTTP_USER_AGENT'), 'MSIE [6]\.0', 'gi')) = 1"/>
<div style="width: 720px;">
<xsl:if test="$currentPage/backgroundImage != ''">
<div class="TopBackgroundArea" style="background-color: #C4C7C8; width: 100%; background-image: url({umbraco.library:GetMedia($currentPage/backgroundImage,false())/umbracoFile})">
</div>
</xsl:if>
<div class="TopNav"> </div>
In the line above where I have higlighted in bold, how can I check whether the $currentpage parameter is correct or not?
I would be grateful of you guys could help me out on this since I do not have much experience on the XSLT but capable of understanding and making changes!!
Thanks in advance!!
I have resolved this issue and thus this thread will be closed...
Thanks!! :-)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.