Posted by gerdami on 25 Aug 2009 07:54, last edited by GoVegan on 09 May 2010 05:31
Introduction
The parent-child relationship helps creating structured websites, sitemaps and breadcrumbs navigation.
The old way
At the bottom of a page, click on + options, parent and choose the parent page
The new way
default category
Create or edit the _template and add the following
%%content%%
[[module NewPage button="Add a child page" parent="%%full_page_name%%"]]
other categories
Create or edit the cat1:_template and add the following
%%content%%
[[module NewPage button="Add a child page" parent="%%full_page_name%%" category="%%category%%"]]
_start page
Remember that pages whose name starts with an underscore (like "_start", "_header", etc.) are not affected by the _template. Hence you would have to add the module NewPage on that page as well.
Another solution would be to use a start page that does not starts with an underscore and add a hidden tag _system to prevent the start page from being listed by ListPages.
Author
gerdami. Please visit his/her userPage.
I'm using this here but it does not seem to add the new page with the current one as the parent.
… help?
Because the module Newpage must be placed on the live _template http://hobbycode.wikidot.com/sandbox:_template, not on the page http://hobbycode.wikidot.com/sandbox:book-shelf, since %%full_page_name%% will only be resolved via the live template.
Please re-read the HowTo.
gerdami - Visit Handbook en Français - Rate this howto:import-simple-excel-tables-into-wikidot up!
Thanks for that mate. :)