Sitemap page

Sitemap page

While Neto automatically generates sitemaps and submits them to Google, some customers like to also have a sitemap page which is visible to customers.

The code snippet below is an example of how you could make a sitemap page. You may need to tweak it to ensure it suits your content structure.

<ul>
    [%content_menu content_type:'category' limit:''%]
        [%param header%]
        <li>Categories
            <ul>
        [%/param%]
        [%param *level_1%]
            <li><a href="[@url@]">[@name@]</a>
            [%if [@next_level@]%]
                <ul>
                    [@next_level@]
                </ul>
            [%/if%]
        [%/param%]
        [%param *level_2%]
            <li><a href="[@url@]">[@name@]</a>
            [%if [@next_level@]%]
                <ul>
                    [@next_level@]
                </ul>
            [%/if%]
        [%/param%]
        [%param *level_3%]
            <li><a href="[@url@]">[@name@]</a>
            [%if [@next_level@]%]
                <ul>
                    [@next_level@]
                </ul>
            [%/if%]
        [%/param%]
        [%param *level_4%]
            <li><a href="[@url@]">[@name@]</a>
            [%if [@next_level@]%]
                <ul>
                    [@next_level@]
                </ul>
            [%/if%]
        [%/param%]
        [%param *level_5%]
            <li><a href="[@url@]">[@name@]</a>
            [%if [@next_level@]%]
                <ul>
                    [@next_level@]
                </ul>
            [%/if%]
        [%/param%]
        [%param *level_6%]
            <li><a href="[@url@]">[@name@]</a>
            [%if [@next_level@]%]
                <ul>
                    [@next_level@]
                </ul>
            [%/if%]
        [%/param%]
        [%param *level_7%]
            <li><a href="[@url@]">[@name@]</a>
            [%if [@next_level@]%]
                <ul>
                    [@next_level@]
                </ul>
            [%/if%]
        [%/param%]
        [%param footer%]
            </ul>
            </li>
        [%/param%]
    [%/content_menu%]
    [%content_menu type:'page' limit:''%]
        [%param header%]
        <li>Content Pages
            <ul>
        [%/param%]
        [%param *level_1%]
            <li><a href="[@url@]">[@name@]</a>
            [%if [@next_level@]%]
                <ul>
                    [@next_level@]
                </ul>
            [%/if%]
        [%/param%]
        [%param *level_2%]
            <li><a href="[@url@]">[@name@]</a>
            [%if [@next_level@]%]
                <ul>
                    [@next_level@]
                </ul>
            [%/if%]
        [%/param%]
        [%param *level_3%]
            <li><a href="[@url@]">[@name@]</a>
            [%if [@next_level@]%]
                <ul>
                    [@next_level@]
                </ul>
            [%/if%]
        [%/param%]
        [%param *level_4%]
            <li><a href="[@url@]">[@name@]</a>
            [%if [@next_level@]%]
                <ul>
                    [@next_level@]
                </ul>
            [%/if%]
        [%/param%]
        [%param *level_5%]
            <li><a href="[@url@]">[@name@]</a>
            [%if [@next_level@]%]
                <ul>
                    [@next_level@]
                </ul>
            [%/if%]
        [%/param%]
        [%param *level_6%]
            <li><a href="[@url@]">[@name@]</a>
            [%if [@next_level@]%]
                <ul>
                    [@next_level@]
                </ul>
            [%/if%]
        [%/param%]
        [%param *level_7%]
            <li><a href="[@url@]">[@name@]</a>
            [%if [@next_level@]%]
                <ul>
                    [@next_level@]
                </ul>
            [%/if%]
        [%/param%]
        [%param footer%]
            </ul>
            </li>
        [%/param%]
    [%/content_menu%]
    [%content_menu type:'blog' limit:''%]
        [%param header%]

        [%/param%]
        [%param *level_1%]
            <li><a href="[@url@]">[@name@]</a>
            [%if [@next_level@]%]
                <ul>
                    [@next_level@]
                </ul>
            [%/if%]
        [%/param%]
        [%param *level_2%]
            <li><a href="[@url@]">[@name@]</a>
            [%if [@next_level@]%]
                <ul>
                    [@next_level@]
                </ul>
            [%/if%]
        [%/param%]
        [%param *level_3%]
            <li><a href="[@url@]">[@name@]</a>
            [%if [@next_level@]%]
                <ul>
                    [@next_level@]
                </ul>
            [%/if%]
        [%/param%]
        [%param *level_4%]
            <li><a href="[@url@]">[@name@]</a>
            [%if [@next_level@]%]
                <ul>
                    [@next_level@]
                </ul>
            [%/if%]
        [%/param%]
        [%param *level_5%]
            <li><a href="[@url@]">[@name@]</a>
            [%if [@next_level@]%]
                <ul>
                    [@next_level@]
                </ul>
            [%/if%]
        [%/param%]
        [%param *level_6%]
            <li><a href="[@url@]">[@name@]</a>
            [%if [@next_level@]%]
                <ul>
                    [@next_level@]
                </ul>
            [%/if%]
        [%/param%]
        [%param *level_7%]
            <li><a href="[@url@]">[@name@]</a>
            [%if [@next_level@]%]
                <ul>
                    [@next_level@]
                </ul>
            [%/if%]
        [%/param%]
        [%param footer%]

        [%/param%]
    [%/content_menu%]
</ul>

Was this article useful?

Be notified when this page is updated. Optional.