wiki:aw:the-menu
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| wiki:aw:the-menu [2025/10/13 10:40] – [Creating your own menu] Neil | wiki:aw:the-menu [2026/04/09 14:33] (current) – Neil | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Creating your own menu ====== | ====== Creating your own menu ====== | ||
| - | < | + | <WRAP round info 80%>The menu used on this site is a **completely revised** version of the default system based on a single JSON formatted javascript file. The script that loads it has been completely **re-written** to include additional features.</ |
| - | Shown below is the new version of **ows-menu.js** file showing the default menu and its elements. | + | Shown below is the new version of **menu.js** file showing the default menu and its elements. **Note** it no longer possible to add icons to the top level of menu entries. |
| - | <code javascript | + | |
| + | <code javascript menu.js> | ||
| menuSrc = [ | menuSrc = [ | ||
| {title: " | {title: " | ||
| Line 12: | Line 13: | ||
| {title: "Today v Yesterday", | {title: "Today v Yesterday", | ||
| {title: " | {title: " | ||
| - | {title: "Weather | + | {title: " |
| {title: "This Month", | {title: "This Month", | ||
| {title: "This Year", | {title: "This Year", | ||
| Line 20: | Line 21: | ||
| {title: "All records", | {title: "All records", | ||
| ]}, | ]}, | ||
| - | {title: " | + | {title: " |
| {title: " | {title: " | ||
| {title: " | {title: " | ||
| Line 33: | Line 34: | ||
| ==== Title ==== | ==== Title ==== | ||
| <WRAP indent> | <WRAP indent> | ||
| - | |||
| - | |||
| ==== URL ==== | ==== URL ==== | ||
| <WRAP indent> | <WRAP indent> | ||
| - | If you want a menu bar across a **dropdown** menu (see below), then the **url and title** should be blank.++ Comment | Including this is a top level menu item may cause problems.++</ | + | If you want a menu bar across a **dropdown** menu (see below), then the **title** should be " |
| ==== subMenu ==== | ==== subMenu ==== | ||
| Line 48: | Line 47: | ||
| ==== Icon ==== | ==== Icon ==== | ||
| - | <WRAP indent>' | + | <WRAP indent>' |
| ++++ Information | | ++++ Information | | ||
| - | Although you can now include icons in **any** | + | The same menu construct is used for both the bar menu and the sidebar menu but they are formatted differently. |
| ++++ | ++++ | ||
| </ | </ | ||
| ==== new_window ==== | ==== new_window ==== | ||
| - | <WRAP indent>Use this set to **true** to have the link open in a new window | + | <WRAP indent>Setting |
| ==== Special Cases ==== | ==== Special Cases ==== | ||
| The two entries ' | The two entries ' | ||
| - | * **forum: true** / **forum: false**. | + | * **forum: true** / **forum: false**. |
| * **webcam: true** / **webcam: false**. If **true** then the url configured in CumulusMX will be inserted.\\ ++ Note | You are responsible for the formatting of this page. If it is under your control, then use a template page to hold the image / video so that it follows the same style as the rest of the site. If not under your control then I suggest you make it open in a new window - see above. ++ | * **webcam: true** / **webcam: false**. If **true** then the url configured in CumulusMX will be inserted.\\ ++ Note | You are responsible for the formatting of this page. If it is under your control, then use a template page to hold the image / video so that it follows the same style as the rest of the site. If not under your control then I suggest you make it open in a new window - see above. ++ | ||
wiki/aw/the-menu.txt · Last modified: by Neil
