Fast and simple site map with Wayfinder
Wayfinder can be use to quickly create a site map for your website. Because modx is so amazing, there are at least 3 ways of doing it. The method below is the most flexible I know because it allows to style your site map template any way you want.
Create the 'Site Map' template.
In order to create a site map template just duplicate one of your current templates.
Name your new template 'Site Map', add a description and make sure it contains the code below.
...... [*content*] <div id="siteMap"> [[Wayfinder? &startId=`0` &ignoreHidden=`true`]] </div> .....
Create the 'Site Map' document
Create a new document/resource and assign the above template. The 'Site Map' document usually sits in the root of your document structure and most times has "Show in menu" unchecked to avoid displaying the site map in the main menu.
Once the document is saved, preview it.
Remove any unwanted documents
Usually you need remove some documents from your site map. Use the excludeDocs parameter to do it.
[[Wayfinder? &startId=`0` &ignoreHidden=`true` &excludeDocs=`150,58,59`]]
Style it
Use the css template below to style your site map to your liking
#siteMap {}
#siteMap ul {}
#siteMap ul li{}
#siteMap ul li a{}
#siteMap ul li a:hover{}
Share your website site map details below. A link would be nice!

Write a comment
Posts: 3
Reply #4 on : Thu May 13, 2010, 22:50:48
Posts: 1
Reply #3 on : Fri May 14, 2010, 07:43:45
Posts: 3
Reply #2 on : Mon May 31, 2010, 19:08:18
Posts: 3
Reply #1 on : Tue July 27, 2010, 13:50:35