This function generates a linked list of all pages in your wiki.
This is a simple prototype sitemap widget. There's little styling, you can't center it or change the font. The only variable is the maximum number of pages to show in the widget. (This is just in case ELotH:TES wants to use it.) But it is automatic; if you add, delete, rename, or change the description of a page, this widget will reflect that change.
As with all Widgets, you'll need to load the Widget Library by placing this code at the top of your SideBar:
(You may already be loading widget, if you're using other functions. This is included here to help new users.)
<script type="text/javascript" src="http://widget.pbwiki.com/f/widget_lib.js"></script>
Then, you'll need to add this line right after your call to widget_lib:
<script src="links.php"></script>
So that you end up with this:
<script type="text/javascript" src="http://widget.pbwiki.com/f/widget_lib.js"></script> <script src="links.php"></script>
Finally, put this where you want the siteMap to appear:
<script>widget.siteMap(100,true);</script>
Parameters are bits of information passed to the widget to change the way it looks or works. This function has two parameters: the maximum number of links to show in the siteMap, and whether to split CamelCase page names up into separate words (use true or false).
Click the 'Recent Activity' tab in the SideBar to see an example that splits the page names.
Page Information
|
Wiki Information |
Recent PBwiki Blog Posts |