Site-Map Not Displaying all pages

Jefferson Furtado's Avatar

Jefferson Furtado

04 Mar, 2015 04:20 PM

I am having an issue getting all my pages to display in the site map. It only displays about 500 entries at a time. I have tried setting the index block to infinity and to a specific number. But no difference. Any suggestions?

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:template match="/system-index-block">
        <h1>Site Map</h1>
        <xsl:if test="count(system-page | system-folder[descendant::system-page]) &gt; 0">
            <ul>
                <xsl:apply-templates select="system-page | system-folder[descendant::system-page]"/>
            </ul>
        </xsl:if>
    </xsl:template>
    <xsl:template match="system-page">
        <li>
            <a>
                <xsl:attribute name="href">
                    <xsl:value-of select="link"/>
                </xsl:attribute>
                <xsl:choose>
                    <xsl:when test="title != ''">
                        <xsl:value-of select="title"/>
                    </xsl:when>
                    <xsl:when test="display-name != ''">
                        <xsl:value-of select="display-name"/>
                    </xsl:when>
                    <xsl:otherwise>
                        <xsl:value-of select="name"/>
                    </xsl:otherwise>
                </xsl:choose>
            </a>
        </li>
    </xsl:template>
    <xsl:template match="system-folder">
        <li>
            <xsl:choose>
                <xsl:when test="title != ''">
                    <xsl:value-of select="title"/>
                </xsl:when>
                <xsl:when test="display-name != ''">
                    <xsl:value-of select="display-name"/>
                </xsl:when>
                <xsl:otherwise>
                    <xsl:value-of select="name"/>
                </xsl:otherwise>
            </xsl:choose>
            <xsl:if test="count(system-page | system-folder[descendant::system-page]) &gt; 0">
                <ul>
                    <xsl:apply-templates select="system-page | system-folder[descendant::system-page]"/>
                </ul>
            </xsl:if>
        </li>
    </xsl:template>
</xsl:stylesheet>
  1. 1 Posted by Ryan Griffith on 04 Mar, 2015 05:12 PM

    Ryan Griffith's Avatar

    Hi Jefferson,

    There is a Max Assets in Index Blocks preference that may be capping your Index Block. To confirm, check the number for this preference by going to System Menu -> Preferences -> Content (second field from the top).

    Note: this preference affects Index Blocks at the system level and may cause Index Blocks across the system to become larger if they are set to index more than the current limit allows.

    Please let me know if you have any questions.

    Thanks!

  2. Ryan Griffith closed this discussion on 11 Mar, 2015 07:22 PM.

Discussions are closed to public comments.
If you need help with Cascade CMS please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

26 Aug, 2016 01:19 PM
25 Aug, 2016 03:02 PM
25 Aug, 2016 12:50 PM
24 Aug, 2016 08:43 PM
24 Aug, 2016 07:20 PM
21 Aug, 2016 01:20 PM