I just found a problem. When I added some text pages under the home page, the SubNav.xslt did not show the information as expected. It should shows the Home page at the header and the list of text pages under the home page, but the header is the text page itself and there is no list below. I think this might be a bug.
SubNav.xslt does not show information correctly
I just found a problem. When I added some text pages under the home page, the SubNav.xslt did not show the information as expected. It should shows the Home page at the header and the list of text pages under the home page, but the header is the text page itself and there is no list below. I think this might be a bug.
I added an variable named "countItems" to remove the empty list with the header of the text page itself.
<xsl:variable name="countItems" select="count($parentNode/Textpage)" />
<xsl:if test="string($parentNode/@id) != '' and $countItems > 0">
<div class="head_title_bg_Text">
<div class="head_title">
<div class="RecentListTitleLeft">
<a href="{concat(substring($NiceLink,1,string-length($NiceLink) - 5),'/')}">
<xsl:value-of select="$parentNode/pageHeading"/>
</a>
</div>
</div>
</div>
<div class="ListContent">
<xsl:call-template name="drawNodes">
<xsl:with-param name="parent" select="$parentNode"/>
</xsl:call-template>
</div>
But this is not the best solution since I hope the xslt shows the list of text pages under the home page. Is there any good solution?
is working on a reply...