Copied to clipboard

Flag this post as spam?

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


  • Kevin 37 posts 57 karma points
    Mar 17, 2011 @ 14:44
    Kevin
    0

    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.

  • Kevin 37 posts 57 karma points
    Mar 17, 2011 @ 14:57
    Kevin
    0

    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?

Please Sign in or register to post replies

Write your reply to:

Draft