320
edits
NeilThomas (talk | contribs) |
NeilThomas (talk | contribs) |
||
Line 51: | Line 51: | ||
If you decide '''NOT''' to generate NOAA Reports then you need to edit the ''menu.js'' file uploaded to your web host. See below: | If you decide '''NOT''' to generate NOAA Reports then you need to edit the ''menu.js'' file uploaded to your web host. See below: | ||
== | ==Editing the website menu== | ||
The website menu is held in the file ''menu.js''. An image of this is shown below: | |||
''' | Menu configuration file for NEW CuMX template | ||
Last modified: 2022/07/05 11:39:38 | |||
menu.js - typical name, you define the one used in setpagedata.js<br> | |||
It is STRONGLY RECOMMENDED that if you customise this file, you create a new file with a different name, e.g. mymenu.js | |||
and change setpagedata.js to use that file. This will avoid your customisations being accidentally overwritten during upgrades<br> | |||
Properties: | |||
.title - This is the text that appears in the menu bar. | |||
.menu - can be 'b' (both menus), 'w' (wide menu ONLY), 'n' (narrow [mobile] menu ONLY) | |||
.new_window:true - forces the link to open in new browser window | |||
.url - This is the address of the page. if it is to an external page on another site it must include the full url | |||
The two entries that are '#' are special and are configured by the website. | |||
.forum:true - flags a forum link menu item, it will use the url provided in CuMX config, if that is blank the menu item will be hidden | |||
.webcam:true - flags a webcam link menu item, it will use the url provided in CuMX config, if that is blank the menu item will be hidden | |||
[[File:Screenshot 2024-03-20 at 12.38.12.png|800px]] | |||
* If you want to change the language, simply enter translations for the titles only. | |||
* If you want to add an entry copy the entry above and edit it as required. | |||
* To create a whole new sub-menu, copy and paste either the section that starts with the '''title: "Records"...''' or '''title: "Charts"...''' and then edit as required. | |||
===Colour Themes=== | ===Colour Themes=== |
edits