Get your own customer support community
 

Custom Menu Bars, Table of Contents, and Importing blocks of HTML Tutorial

I’ve been trying to get some really complicated bits of code to work lately, and I’ve come up with a nice alternative to have a “second” sidebar, custom menu bar, and Index which I hope can help you out. It’s a bit complicated, but there’s nothing here that’s hard as long as you know how to edit a wiki page! For the moment, I’m using this method to keep a Sortable-Hierarchal-Table of Contents within my site...see http://magicwiki.pbwiki.com for more and scroll to the bottom, that table is stored in an external file and not inside the page at all!

OK, the first thing you’ll need to do is create a “HTML/JavaScript Plugin” wherever you want the block of external Javascript or HTML to go. Then check the box that says “Allow Javascript code...” and paste the following:

<*script type="text/javascript" src="/f/NAMEOFFILE.js">

Removing the * and changing NAMEOFFILE to the name of your file, which must always be a javascript file (even if you only are using a block of HTML, more on that in a bit). If you only wish to reuse a block of HTML, then it’s simple, just upload your Javascript file and your done. If however you want to reuse a piece of HTML or HTML and JavaScript mix, then read on.

The first thing you’ll need to do is create the block of HTML. You can do this by creating a temporary page in your PBWiki, and using the editor to create whatever it is you will be reusing as you want it to appear (Menu, Table of Contents, News Announcements, etc) in your pages. Then go into Source Mode, and copy/paste all the code into this link http://accessify.com/tools-and-wizard... , making sure to uncheck the “Include
 
happy I’m excited
Inappropriate?
1 person likes this idea

User_default_medium