This article applies to:
ML v7, ML8, MultiStore
Setting the number of news article headlines to be shown at the bottom of the homepage
|
|
News articles allow store admins to inform customers of special events, changes, additions, or anything else you wish to communicate to your customers. There are two ways to customize the number of news article headlines that shows up at the bottom of your homepage. One way is to open up the page.default.xml.config xmlpackage and look for the GetNewsBoxExpanded extension function call. Change the 2nd parameter to the number of articles you want to be shown in your homepage e.g. to show 10 articles you could change it to
Code:
<xsl:value-of select="aspdnsf:GetNewsBoxExpanded(0, 10, '1', aspdnsf:StringResource('default.aspx.3'))" disable-output-escaping="yes" />
Another way is, from the admin section, create a new appconfig called something like News.NumShowArticles. Then go to the page.default.xml.config xmlpackage and create a new param called NumNewsArticles with the others
Code:
<xsl:param name="NumHomePageSpecials" select="aspdnsf:AppConfig('NumHomePageSpecials')" />
<xsl:param name="FeaturedCategoryID" select="aspdnsf:AppConfig('IsFeaturedCategoryID')" />
<xsl:param name="DoNotShowNewsOnHomePage" select="aspdnsf:AppConfigBool('DoNotShowNewsOnHomePage')" />
<xsl:param name="NumNewsArticles" select="aspdnsf:AppConfig('News.NumShowArticles')" />
Then reference that in the GetNewsBoxExpanded extension function
Code:
<xsl:value-of select="aspdnsf:GetNewsBoxExpanded(0, $NumNewsArticles, '1', aspdnsf:StringResource('default.aspx.3'))" disable-output-escaping="yes" />
|