Automatic Sitemap

By michal frackowiak

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


Thanks to tsangk for this great snippet: conditional-blocks


text above inserted with:

[[include :snippets:if START |unique=1|type=equal|var1=%%name%%|var2=conditional-blocks]]
**##red|Thanks to tsangk for this great snippet:##** [[[code:conditional-blocks]]]
[[include :snippets:if END]]



Other snippets posted by michal frackowiak

Zoho Writer - 16 Feb 2012 01:57
Zoho Sheet - 16 Feb 2012 01:56
Zoho Show - 16 Feb 2012 01:55
Zoho Polls - 16 Feb 2012 01:53
WoW Tooltips - 16 Feb 2012 01:52
Widgetbox Panel - 16 Feb 2012 01:52
Video from Revver - 16 Feb 2012 01:50
Todo List - 16 Feb 2012 01:48
Tabs - 16 Feb 2012 01:45
Standalone Page Buttons - 16 Feb 2012 01:44
Social Bookmarking - 16 Feb 2012 01:42
Simple Gallery - 16 Feb 2012 01:41
Remember The Milk Todo - 16 Feb 2012 01:39
Recent Changes (mini) - 16 Feb 2012 01:36
Rating Summary - 16 Feb 2012 01:35
Quimble Poll - 16 Feb 2012 01:33
Quikmaps Maps - 16 Feb 2012 01:33
Photobucket Widget - 16 Feb 2012 01:29
Page Previews (Snap.com) - 16 Feb 2012 01:29
Pabpixies Gadgets - 16 Feb 2012 01:28

page 1 of 3123next »

Rate this solution

If you think this solution is useful — rate it up!

rating: +96+x
Add a New Comment
Page tags: parent sitemap structure
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License