This function is designed to be used in the SideBar only. It will grab any <toc>s in the page, copy them into the SideBar, then optionally hide the original <toc>s.
To use, place this code in the SideBar where you would like the <toc> to appear:
<div id="sbtoc"></div>
You can use any id name; sbtoc is merely an example.
Then place this code at the top of the SideBar:
<script>widget.pageToc('sbtoc',true);</script>
Be sure to use the same id as you did the first time. The second parameter determines whether to hide the original <toc> ; true hides it, false leaves it alone.
Page Information
|
Wiki Information |
Recent PBwiki Blog Posts |