Automatic Sitemap
Description
It is quite important to have a nice and clean structure of the site. One of the best ways to do maintain such a structure is to use the "parent page" relation. This allows to:
- display breadcrumb navigation element within pages
- make nice sitemaps and listings
Below you will find a piece of code to make a "tree view" of pages also called "sitemap".
Code
If you want to start from the main page ("start"), just use the code:
[[module PageTree root="start" showRoot="true" depth="30"]]
In action
http://morgdan.wikidot.com/mapa-do-site
http://zeroinfluence.wikidot.com/phoarmats:overview
http://potlatch.wikidot.com/sitemap
http://allyrics.wikidot.com/mappa-del-sito
Rate this solution
If you think this solution is useful — rate it up! Or dump it otherwise.
page_revision: 6, last_edited: 1217318956|%e %b %Y, %H:%M %Z (%O ago)





Comments
Good to know that you can change the parent of existing (or new) pages by clicking on the +options button (lower right).
Set the parent of your current page to something that makes sense, i.e. "start".
…. What is the order form pages?
This is very useful! One small thing, though:
I am using the following settings:
[[module PageTree root="wow" showRoot="false" depth="30"]]
This still shows the "wow" page as the root of the tree. I'd prefer that it hide it and show only the children and their children.
Not exactly sure what the solution to that is, but I do know that showRoot must be set to "true", i.e. if you do not wish to have it set to true, do not include it at all. Try that, and see if it fixes your problem.
do you know if there is a way to automatically set the parents for pages created with a "new page" module on a particular page?
I would *love* to see something like this, perhaps in a template or something. or at least a shortcut for setting parents. as is, its waaay too slow, essentially manually curating a sitemap
just show "Welcome to your new Wikidot site" :-(
Still not working :-(
i did [[module PageTree root="start"]] and
[[module PageTree root="start" showRoot="true" depth="30"]]
is just showing a single link to the start page
Yes, I also facing this problem, can anyone solve it ???
you have to establish a parenthood relationship between a page and the page start by pressing the +options buttons and then the parent button :)
hi.the first time
is there a way to change the breadcrumb navigation display using css?
thx!