Use this code to include the library in your wiki:
<script type="text/javascript" src="http://widget.pbwiki.com/f/widget_lib.js"></script>
Include this in your SideBar if you want the functionality to extend across your wiki, or just include it on specific pages. NOTE: If you are using the V2 SideBar with multiple tabs (QuickStart, RecentActivity, etc.), then put it at the top of QuickStart instead of SideBar, or whichever your first tab is.
Whenever you want a certain function, simply call it in your page with:
You can include multiple functions between the <script></script> tags:
<script>
widget.addButton('Google','http://www.google.com');
widget.toggleToc();
widget.includePage('SomePage');
</script>
If you want the function to be called on every page, then place the function call in your SideBar, right after you load widget_lib.js.
All the functions are available here, and you can browse the wiki to see what's useful for you. Also, request things in the PBwiki forums, and you might see it in the library in a few days.
Page Information
|
Wiki Information |
Recent PBwiki Blog Posts |