Smartsite SXML CopyCode image Copy Code
<se:sitemap>
    <se:parameters>
        <se:parameter name="startitem">24665</se:parameter>
        <se:parameter name="includeroot">false</se:parameter>
        <se:parameter name="maxlevels">3</se:parameter>
        <se:parameter name="format">
            <se:rowformat>
                <li>
                    <a href="{channel.link(this.field(nr))}">{this.field(title)}</a>
                    {this.childlevelresult()}
                </li>
            </se:rowformat>

            <se:levelformat groupby="this.field(level)">
                <ul>{this.levelresult()}</ul>
            </se:levelformat>
        </se:parameter>
        <se:parameter name="resultformat"><ul>{this.result()}</ul></se:parameter>
    </se:parameters>
</se:sitemap>
Example Result CopyCode image Copy Code
<ul>
                <li>
                    <a href="/test.net?id=24666">Tools</a>
                    
                <ul>
                <li>
                    <a href="/test.net?id=SCREWDRIVERS">Screwdrivers</a>
                    
                <ul>
                <li>
                    <a href="/test.net?id=24668">Screwdriver XL Plus</a>
                    
                </li>
            
                <li>
                    <a href="/test.net?id=27435">Screwdriver 300GT</a>
                    
                </li>
            
                <li>
                    <a href="/test.net?id=27436">Screwdriver Deluxe 170</a>
                    
                </li>
            </ul>
            
                </li>
            </ul>
            
                </li>
            </ul>