User Tools

Site Tools


wiki:aw:configure

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:aw:configure [2025/10/13 08:41] – [Information] Neilwiki:aw:configure [2025/10/20 08:32] (current) – [Dynamic Configuring] Neil
Line 3: Line 3:
 **Like all previous versions of the alternative website, all settings are now held in one place - the cmxConfig object held in the <color #80f>**page-control.js**</color> file.** **Like all previous versions of the alternative website, all settings are now held in one place - the cmxConfig object held in the <color #80f>**page-control.js**</color> file.**
  
-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 is stored locally on your machine as '**SessionStorage**' so is only stored for the current browsing session and will **not be retained once the browser is closed**.+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 is stored locally on your machine as '**SessionStorage**' with the name suffix **//apwConfig//** so is only stored for the current browsing session and will **not be retained once the browser is closed**.
 </WRAP> </WRAP>
 ===== Initial Configuration ===== ===== Initial Configuration =====
Line 22: Line 22:
   * Entries that start with **/** will be an absolute path to your data.   * Entries that start with **/** will be an absolute path to your data.
   * Other initial characters will interpret the entry as a relative path.   * Other initial characters will interpret the entry as a relative path.
 +  * See [[:wiki:aw:Config-Detail|detailed information]] with images. 
 ++++ ++++
  
Line 32: Line 33:
 === Custom === === Custom ===
 This area is used to configure other user settings.  This is covered in detail in the [[cmxConfig page|wiki:aw:cmxConfig]] This area is used to configure other user settings.  This is covered in detail in the [[cmxConfig page|wiki:aw:cmxConfig]]
- 
-<wrap info>Other entries are covered in the page devoted to [[cmxConfig page|wiki:aw:cmxConfig]]</wrap> 
  
 </WRAP> </WRAP>
Line 90: Line 89:
 ++++ ++++
  
-</WRAP> +==== Charts & Records ==== 
-==== The remaining entries ==== +Both these entries are dynamic in that they are used by the site to record the last **Trends** or **Historic** chart or **Monthly** or **All Records** recordset viewed so that when a visitor returns to them, the same chart / recordset is displayed. 
- +=== Charts === 
-As stated above, the sections **Charts** and **Records** are dynamic; they are set when visitors select specific charts or record sets.  They relate to the charts - Trends and Historic, and Records - Monthly and All Records+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.  Valid entries are: If **you** set them in cmxConfig then the chart you set will be the one visitors see first.  Valid entries are:
  
Line 102: Line 101:
  
 Of course, if your system does not generate a chart it is pointless to force it to display by default.  However, the site will gracefully inform the user that no data has been found.  Of course, if your system does not generate a chart it is pointless to force it to display by default.  However, the site will gracefully inform the user that no data has been found. 
- +++++ 
-As the Records pages already select the most appropriate record set, I have not included the options for these but there is no reason why they cannot be pre-set: use 1 to 11 for months and **Alltime**, **ThisYear** and **ThisMonth** for others.+</WRAP>
 ==== Dynamic Configuring ==== ==== Dynamic Configuring ====
 <WRAP nicebox red> <WRAP nicebox red>
-In previous versions 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.((For info the command is **%%sessionStorage.clear()%%**)) +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.
  
-My preferred method is to use the **Developer Tools** available in most browsers and to edit the sessionStorage variable directly.  For my Alternative Public Website the variable always ends: **cmxConfig**.  You should be able to edit the **Values** directly and see the effect simply by refreshing the page.+**%%sessionStorage.clear()%%** 
 + 
 +<wrap alert 50% center><color #800>**Remember to remove it or comment it out when you have completed any configuration**</color></wrap> 
 + 
 +++ 
 + 
 +My preferred method is to use the **Developer Tools** available in most browsers and to edit the sessionStorage variable directly.  For my Alternative Public Website the variable always ends: **-apwConfig** and is prefixed with the parent folder name.  You should be able to edit the **Values** directly and see the effect simply by refreshing the page.
  
 If this is not possible, for whatever reason, simply close the browser and reload the page.  The session variable will have been deleted and whatever you have stored in the **page-control.js** cmxConfig variable will be used. If this is not possible, for whatever reason, simply close the browser and reload the page.  The session variable will have been deleted and whatever you have stored in the **page-control.js** cmxConfig variable will be used.
 </WRAP> </WRAP>
 +===== Dashboard Information Panel =====
 +<WRAP nicebox orange>
 +The contents of this panel can now be changed without editing the **index.html** page.
 +<WRAP alert center 60% round>
 +=== You should edit this file to include the text that you want to appear on the dashboard page. ===
 +</WRAP> 
  
 +A new **//index-info.html//** file has been added that can be edited to contain whatever you want to appear in this panel.  Just edit this file and its contents will be used instead of the coded content.++ Note | If you delete this file then the box will revert to the coded content of the index.html page and a warning will be displayed on the console. ++
 +</WRAP>
wiki/aw/configure.1760344902.txt.gz · Last modified: by Neil