Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I download the Business Website Starter Pack 1.4
I don't know if it is me who badly copied the xslt code from newsList.xslt, but when I try to save newslist.xslt I get a system.OverflowException:
System.OverflowException: Value was either too large or too small for an Int32. at System.Convert.ToInt32(Double value)
Anyone had the same problem?
greetings,
Anthony CandaeleBelgium
Hi Anthony.
Can you provide us with the code that fails? Line number etc.
/Kim A
I think becasu you not publish any content in News
Let's publish it or edit your xslt
In line 172 marco loads feature news and if you have not any news it will error
<div class="main_news_item"> <h3> <a title="{$featuredItem/@nodeName}" href="{umbraco.library:NiceUrl($featuredItem/@id)}"> <xsl:value-of select="$featuredItem/pageHeading"/> </a> </h3> <p class="news_date"><xsl:value-of select="umbraco.library:FormatDateTime($featuredItem/newsDate, 'd MMMM, yyyy')"/></p> <p><xsl:value-of select="umbraco.library:ReplaceLineBreaks($featuredItem/newsSummary)" disable-output-escaping="yes" />...</p> <p><a title="{$featuredItem/@nodeName}" href="{umbraco.library:NiceUrl($featuredItem/@id)}">Read full story »</a></p> </div>
let's check if $featuredItem != null
<xsl:if test="$featuredItem != null"> <div class="main_news_item"> <h3> <a title="{$featuredItem/@nodeName}" href="{umbraco.library:NiceUrl($featuredItem/@id)}"> <xsl:value-of select="$featuredItem/pageHeading"/> </a> </h3> <p class="news_date"><xsl:value-of select="umbraco.library:FormatDateTime($featuredItem/newsDate, 'd MMMM, yyyy')"/></p> <p><xsl:value-of select="umbraco.library:ReplaceLineBreaks($featuredItem/newsSummary)" disable-output-escaping="yes" />...</p> <p><a title="{$featuredItem/@nodeName}" href="{umbraco.library:NiceUrl($featuredItem/@id)}">Read full story »</a></p> </div> </xsl:if>
It fixed !
Good luck
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
system.OverflowException in newsList.xslt
Hi,
I download the Business Website Starter Pack 1.4
I don't know if it is me who badly copied the xslt code from newsList.xslt, but when I try to save newslist.xslt I get a system.OverflowException:
System.OverflowException: Value was either too large or too small for an Int32.
at System.Convert.ToInt32(Double value)
Anyone had the same problem?
greetings,
Anthony Candaele
Belgium
Hi Anthony.
Can you provide us with the code that fails? Line number etc.
/Kim A
I think becasu you not publish any content in News
Let's publish it or edit your xslt
In line 172 marco loads feature news and if you have not any news it will error
<div class="main_news_item">
<h3>
<a title="{$featuredItem/@nodeName}" href="{umbraco.library:NiceUrl($featuredItem/@id)}">
<xsl:value-of select="$featuredItem/pageHeading"/>
</a>
</h3>
<p class="news_date"><xsl:value-of select="umbraco.library:FormatDateTime($featuredItem/newsDate, 'd MMMM, yyyy')"/></p>
<p><xsl:value-of select="umbraco.library:ReplaceLineBreaks($featuredItem/newsSummary)" disable-output-escaping="yes" />...</p>
<p><a title="{$featuredItem/@nodeName}" href="{umbraco.library:NiceUrl($featuredItem/@id)}">Read full story »</a></p>
</div>
let's check if $featuredItem != null
<xsl:if test="$featuredItem != null">
<div class="main_news_item">
<h3>
<a title="{$featuredItem/@nodeName}" href="{umbraco.library:NiceUrl($featuredItem/@id)}">
<xsl:value-of select="$featuredItem/pageHeading"/>
</a>
</h3>
<p class="news_date"><xsl:value-of select="umbraco.library:FormatDateTime($featuredItem/newsDate, 'd MMMM, yyyy')"/></p>
<p><xsl:value-of select="umbraco.library:ReplaceLineBreaks($featuredItem/newsSummary)" disable-output-escaping="yes" />...</p>
<p><a title="{$featuredItem/@nodeName}" href="{umbraco.library:NiceUrl($featuredItem/@id)}">Read full story »</a></p>
</div>
</xsl:if>
It fixed !
Good luck
is working on a reply...