We use the jQuery code library for FreeToastHost, but in reality any club can make use of some of its features.
Here is how to set up real, functioning menus, including with submenus in your home page, meeting info page, or custom page...
In the simplest sense, all that is needed is just an unordered (bulleted) list which you can easily create with the rich text editor. However, typically you will want your menu to do something when someone makes a selection from the menu, so generally I would recommend that each item in the list be made into a hyperlink using the link icon of the editor. These links could direct a website visitor to one of your other webpages, including an unlisted page, or to an external website/webpage. What this does is to allow you to set up a very simple navigation menu that can have sub-menus in it and takes up less space than the standard FTH menus. BTW, we will be using these menus in the future as part of the system interface, so for now, I am enabling you to get ahead of our implemented user interface.
First of all, for a single level menu, copy the following to the clipboard to use as a template for your menu...
Code:
<ul id="myMenu" class="userMenu">
<li>Menu Entry 1</li>
<li>Menu Entry 2</li>
<li>Menu Entry 3</li>
<li>Menu Entry 4</li>
<li>Menu Entry 5</li>
</ul>
Alternately, for a multi-level menu, copy the following to the clipboard to use as a template for your menu...
Code:
<ul id="myMenu" class="userMenu">
<li>Menu Entry 1</li>
<li>Menu Entry 2</li>
<li>Menu Entry 3
<ul>
<li>Sub-menu Entry 3-1</li>
<li>Sub-menu Entry 3-2</li>
<li>Sub-menu Entry 3-3</li>
<li>Sub-menu Entry 3-4</li>
<li>Sub-menu Entry 3-5</li>
</ul>
</li>
<li>Menu Entry 4</li>
<li>Menu Entry 5</li>
</ul>
Please copy the above to an empty custom web page in Source View, then you can test it out until you get it working the way you want. In practice, you will want to convert the text inside each <li></li> pair to a link enclosed in <a href="
mytarget.com
">Link Text so that the menu actually takes the user some place when an item is selected.
There are two parts to this... (must be created in Source View for best results)
1. An overall enclosing <ul> block that encloses the overall list. Use the "userMenu" class as indicated to make FTH automatically convert this to a menu--FTH does the script part, then. You can have an id specified (e.g. like "myMenu"), but it is optional. (If you use an id then put your club number on end to make sure you do not clash with FTH ids.) Including script text is not necessary. FTH will handle setting this up as long as you correctly use the "userMenu" class name.
2.a. <li> blocks. (list items) You need one of these for each menu entry, like I am showing above. These define the text that is shown on the menu,
but do not define what happens when that item is selected. To make the item do something when selected, convert each item to links inside the <li></li> pairs.
2.b. Each <li> block can contain another, "nested" list starting with another <ul> tag. This nesting is how you get submenus.
Again, no JavaScript is needed for this if you use the "userMenu" class name as indicated above. This is an FTH 2.20 advanced feature.
Do not use the same ID as I used above--make up your own and append your club number it to make them distinct from those used in FTH. (otherwise you can create name clash problems)
If you view the above in normal editor WYSIWYG view, you will just see a bulleted list. You have to save your page and exit the Admin Console to see the actual menu.
Enjoy! Please share your webpage address on here so that we can admire your work!