~~~ Please read before posting. ~~~
Important: We need your Club Number at a minimum, and as many details as possible.
For further info please read
This page
before posting.
How to put menus in your content...
- SteveTheTechie
-
Topic Author
- Offline
- Administrator
-
- Posts: 11526
- Thanks: 3050
How to put menus in your content...
10 years 7 months ago - 10 years 7 months ago
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...
Alternately, for a multi-level menu, copy the following to the clipboard to use as a template for your menu...
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!
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!
Last edit: 10 years 7 months ago by SteveTheTechie.
The following user(s) said Thank You: Heni, Pam
The topic has been locked.
- harminder
-
- Offline
- Junior Member
-
- Posts: 36
- Thanks: 5
Re: How to put menus in your content...
10 years 3 months ago
Brambleton Toastmasters
#03025105
Tech Toast
#04005547
#03025105
Tech Toast
#04005547
The topic has been locked.
- SteveTheTechie
-
Topic Author
- Offline
- Administrator
-
- Posts: 11526
- Thanks: 3050
Re: How to put menus in your content...
10 years 3 months ago - 10 years 3 months ago
My hunch is that you could put a
in the ul tag. (or similar with your desired color code)
Look up online references on HTML to help you get it right. My objective with this is *not* to teach people HTML... there are plenty of available online references for that.
Code:
style="background:red;"
Look up online references on HTML to help you get it right. My objective with this is *not* to teach people HTML... there are plenty of available online references for that.
Last edit: 10 years 3 months ago by SteveTheTechie.
The topic has been locked.
- harminder
-
- Offline
- Junior Member
-
- Posts: 36
- Thanks: 5
Re: How to put menus in your content...
10 years 3 months ago
Steve,
Thank you. I was trying in the li tag and it was suppressing onMouse background color.
Thank you. I was trying in the li tag and it was suppressing onMouse background color.
Brambleton Toastmasters
#03025105
Tech Toast
#04005547
#03025105
Tech Toast
#04005547
The topic has been locked.
- 2284DLV
-
- New Member
-
- Thanks: 0
Re: How to put menus in your content...
7 years 9 months ago
Steve, I've tried creating sub-menus using the directions you've listed, but find that only the first two links work from the sub-menu . The third and beyond default to the home page. I can use the same URLs from a browser and link directly to the page desired using the same URL. We publish a weekly newsletter and there are too many for the main menu. I need to create a sub-menu for Newsletters.
Note -Another issue has to do with the quality of the newsletter image when uploaded to FTH. An image that has excellent quality before being uploaded has poor quality once on the FTH website. Since PDFs can't be used is there any way this can be improved? Thanks in advance #2284
Note -Another issue has to do with the quality of the newsletter image when uploaded to FTH. An image that has excellent quality before being uploaded has poor quality once on the FTH website. Since PDFs can't be used is there any way this can be improved? Thanks in advance #2284
The topic has been locked.
Moderators: Brian, Pam, rhtaylor3, marc33, NotLiable, jgavin, Lcala305, Heni, peterb323, DebbieT
Time to create page: 0.983 seconds
Copyright © 2025 FreeToastHost 3 Support. All Rights Reserved.