wiki:aw:configure
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| wiki:aw:configure [2025/05/11 12:19] – Neil | wiki:aw:configure [2025/10/20 08:32] (current) – [Dynamic Configuring] Neil | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Configuring the site ====== | ====== Configuring the site ====== | ||
| <WRAP nicebox teal> | <WRAP nicebox teal> | ||
| - | **Unlike | + | **Like all previous versions of the alternative website, all settings are now held in one place - the cmxConfig |
| - | This object holds the location of the menu to use, the location of your data, the path and name of your menu, the location of your NOAA Reports and other features that the website uses. | + | This object holds the location of the menu to use, the location of your data, the path and name of your menu, the location of your NOAA Reports and other features that the website uses. |
| </ | </ | ||
| + | ===== Initial Configuration ===== | ||
| + | Before any page is fully loaded your browsers current Session Storage is checked to see if a copy of the cmxConfig object already exists, if it does, it is used to configure the page. If it does not not then it is created. | ||
| + | |||
| + | Below is an explanation of the <color # | ||
| <WRAP group> | <WRAP group> | ||
| - | < | + | < |
| - | ===== Information ===== | + | <WRAP nicebox teal> |
| - | Before any page is fully loaded your browsers current Session Storage is checked | + | ==== Data ==== |
| + | This points | ||
| - | If it does not then it is created. | + | ++++ See more | |
| + | If the entry is blank, | ||
| + | If your site is **not** in the root directory, you will need to edit this entry. | ||
| - | ==== Data ==== | + | |
| - | This points to the location of your .json data files((and the **realtimegauges.txt** file)) uploaded by CumulusMX. | + | * Other initial characters will interpret |
| - | ==== Menu ==== | + | |
| - | The menu used by the default website is created from a .json formatted file. This entry points to the supplied menu file. | + | ++++ |
| - | If you want to create your own menu, then make a copy of the supplied one and make sure this entry points to your intended new menu. Please note that the menu structure has been extended and you should view **[[wiki: | ||
| ==== NOAA Reports ==== | ==== NOAA Reports ==== | ||
| - | If you publish | + | Unlike general data CumulusMX allows |
| - | ==== Theme ==== | + | |
| - | The default website comes with a new set of colour themes. | + | |
| - | </ | + | |
| - | < | + | ==== Menu ==== |
| - | < | + | This should be used to point to the javascript menu file used to drive all the menus on the site. Unless you use your own modified menu, there should be little need to edit this. Its default value is **js/ |
| - | === The CMXConfig | + | |
| + | === Custom === | ||
| + | This area is used to configure other user settings. | ||
| + | |||
| + | </WRAP> | ||
| + | </WRAP> | ||
| + | <WRAP third column> | ||
| + | === The cmxConfig | ||
| <code javascript> | <code javascript> | ||
| - | CMXConfig | + | cmxConfig |
| - | | + | |
| - | ' | + | |
| - | ' | + | |
| - | ' | + | |
| - | ' | + | |
| - | ' | + | |
| - | ' | + | |
| - | ' | + | |
| - | ' | + | |
| - | ' | + | |
| - | | + | |
| - | 'Speed': 5, | + | |
| - | ' | + | |
| }, | }, | ||
| - | | + | |
| - | 'Trends': '', | + | |
| - | 'Historic':'' | + | Dropdown: true, |
| + | Theme: | ||
| + | Logo: '', | ||
| + | BannerImage: | ||
| + | StaticHead: | ||
| + | StaticFoot: | ||
| + | PaddingTop: '2', | ||
| + | PaddingBottom: | ||
| + | PaddingUnits: | ||
| }, | }, | ||
| - | 'Records':{ | + | |
| - | 'All':'', | + | Menu: ' |
| - | | + | NOAAReportPath: |
| + | Gull: { | ||
| + | | ||
| + | Speed: 10, | ||
| + | OnTop: false, | ||
| + | }, | ||
| + | Records: { | ||
| + | All: '', | ||
| + | Monthly: '' | ||
| } | } | ||
| - | } | + | }; |
| </ | </ | ||
| </ | </ | ||
| </ | </ | ||
| - | ==== The Seagull | + | ==== Non-critical entries |
| - | As in the AI, the seagull | + | <WRAP nicebox blue> |
| + | === The Gull === | ||
| + | As in the AI, the seagull | ||
| - | === StaticHead, StaticFoot, paddingTop, paddingBottom and paddingUnits=== | + | ++++ More | |
| - | Along with changing the colour theme, you can also modify the header and footer | + | **Animation**:< |
| + | * **gull-FadeIn**< | ||
| + | * **gull-GrowUp**< | ||
| + | * **gull-SlideIn-from-Left**< | ||
| + | * **gull-SlideIn-from-Right**< | ||
| - | ---- | + | **Speed**:< |
| + | **OnTop**:< | ||
| + | </ | ||
| + | ++++ | ||
| - | ==== The remaining | + | ==== Charts & Records ==== |
| + | Both these entries | ||
| + | === Charts | ||
| + | The charts section can be used to dictate which chart is displayed when a visitor first views the respective page. | ||
| + | ++++ See more | | ||
| + | If **you** set them in cmxConfig then the chart you set will be the one visitors see first. | ||
| - | At the end of the CMXConfig object there are two more groups of settings. | + | **Trends**: <wrap indent>' |
| - | They store the last chart or the last record set viewed in both cases. | + | **Historic**: <wrap indent>' |
| - | === Bonus Feature | + | Of course, if your system does not generate a chart it is pointless to force it to display by default. |
| + | ++++ | ||
| + | </ | ||
| + | ==== Dynamic Configuring | ||
| + | <WRAP nicebox red> | ||
| + | Previously I included a command in **page-manager.js** to clear the sessionStorage on every page load. I have not included this in this version although it is still a valid command.\\ | ||
| + | ++ See more | | ||
| + | You can still add this command to **page-control.js** if you want. Add the following before line 29 and the session storage area will be cleared on every page load making any changes current. | ||
| - | One bonus of the above is that you can set the default chart or record set viewed when a visitor initially views your site by entering the chart or record set **ID** on lines <color brown> | + | **%%sessionStorage.clear()%%** |
| - | **Trends**: ' | + | <wrap alert 50% center>< |
| - | **Historic**: | + | ++ |
| - | Of course, if your system does not generate a chart it is pointless | + | My preferred method |
| - | As the Records pages already select the most appropriate record set, I have not included the options | + | If this is not possible, for whatever |
| - | <WRAP nicebox red> | + | |
| - | **In order to make the changes you make active for you without having to start a new browser session, you can uncomment line 14** - | + | |
| - | // | + | |
| - | This will force the browser to store a new CMXConfig object when you refresh a page or view a new one. | + | |
| </ | </ | ||
| - | < | + | ===== Dashboard Information Panel ===== |
| - | This page has been accessed: {{counter|total}} times. | + | < |
| + | The contents of this panel can now be changed without editing the **index.html** | ||
| + | <WRAP alert center 60% round> | ||
| + | === You should edit this file to include the text that you want to appear on the dashboard page. === | ||
| + | </ | ||
| + | |||
| + | A new **// | ||
| </ | </ | ||
wiki/aw/configure.1746965959.txt.gz · Last modified: by Neil
