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
MyBlogLog recent visitors - 06 Jun 2021 04:03
Include Any Page - 06 Jun 2021 03:20
Babelfish Translation - 06 Jun 2021 03:14
Collapsible Text Block - 02 Dec 2020 10:24
Todo List - 18 Aug 2014 15:28
Multicolumn Layout - 17 Dec 2012 19:51
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
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
Meebo me - 16 Feb 2012 01:20
Layout With Tables - 16 Feb 2012 01:19
Instacalc - 16 Feb 2012 01:12
Import the Digg Feed - 16 Feb 2012 01:11
Import a News Feed - 16 Feb 2012 01:10
Google Gadgets - 16 Feb 2012 01:05
Gabbly chat - 16 Feb 2012 01:02
Forum Summary for the Front Page - 16 Feb 2012 01:02
Footnotes - 16 Feb 2012 01:01
Foldable List - 16 Feb 2012 01:01
Flickr Images By Tags - 16 Feb 2012 01:00
Feedburner - 15 Feb 2012 00:53
Extra Side Bar - 15 Feb 2012 00:51
Embed Code From Other Services - 15 Feb 2012 00:50
EditGrid Spreadsheets - 15 Feb 2012 00:49
Cornify - 15 Feb 2012 00:39
Compact Feed Display - 15 Feb 2012 00:35
Center Video - 15 Feb 2012 00:28
Bibliography/Footnotes/Comments Listed in TOC - 15 Feb 2012 00:26
Alexa traffic ratings - 15 Feb 2012 00:23
3d tagcloud - 15 Feb 2012 00:22
Rate this solution
If you think this solution is useful — rate it up!
hm
@ alan and e solutions.
this is why we wrote:-
http://community.wikidot.com/howto:how-to-use:option-buttons
thats nice and all but a lot of the documentation and useful information is a bit scattered.
? ? ?
What are you missing?
Go to the http://community.wikidot.com/start and you will get an overview where you will find all the snippets found by users, the "official" documentation you realy need and the howto's of the community.
At the end of this page on the right botttom you will see a lot of links…
Edit
I see you are a more experienced user now on your profil.. but the question is the same:
What should be done better?
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
I agree with Alan about the lack of applicable documentation for this feature, but I guess that's the purpose behind the forum. After some fiddling around, I found this feature relatively easy to use. Instead of using it throughout the site, however, I started it in one sub-section (KnowledgeBase, for example) and implemented the sitemap throughout the subordinate pages below KnowledgeBase. For each sub-section page, I simply added the name of the "parent" page ("KnowledgeBase") under +options | parent.
It took me about an hour hunting around the wikidot documentation to discover something as simple and basic as how to set a page's parent, i.e. that I have to use + options etc. etc. It's as if the writers of the beginners' manual just forgot that people need to know that! It is hidden away in there somewhere but not in any obvious place. Please improve that aspect of the documentation for future users!
Thank you, it makes my life easier and my site better!
Psammead
is there a way to change the breadcrumb navigation display using css?
thx!
hi.the first time
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 :)
I see this too. I think the problem is that my start page just has text. i.e. no links.
All my links are in the side bar. I tried putting nav:side as the root but that doesn't seem to work either.
How can I set the root to the entire site ??
Do you use "parenting" ?
Not the links are building a site-map!
Every page you want to show up in the site map needs a "parent" -structure upwards till the "root".
This is not necessarily the start page - you can have more "page trees" on a site… perhaps someone inside as category - or other way round only the start-pages of a category connected up to a parent-page - to show in a site map the "structure" of your site and not the single entry pages of a "blog" or "news" category…
Necessary is the "parenting" ( set up at the bottom of the pages in the +"options" —> "parent" for every page.
This gives you automatically the "breadcrumb navigation" too.
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
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
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.
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)