AlternativePublicWebsite: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
m
=== Configuration ===
 
This version of the Alternative Public Website comes with a remodelled version of cmxConfig. This is currently in the page-control.js file. You will need to edit this file to make it point to your data.
{| class="wikitable"
 
==== Heading text ====
{|
|-
|}
| This is slightly different in this version although it still uses the same cmxConfig object.
cmxConfig = {
As can be seen, the object is now separated into sections with one or two extra entries in '''''Custom'''''.
Charts: {
Trends: "",
Historic: "",
},
Custom: {
StandardMenu: false,
Dropdown: true,
Theme: "",
Logo: "",
BannerImage: "",
StaticHead: true,
StaticFoot: true,
PaddingTop: '2',
PaddingBottom: '1',
PaddingUnits: 'em',
},
Data: "",
Menu: 'js/ows-menu.js',
NOAAReportPath: 'Reports/',
Gull: {
Animation: "",
Speed: 5,
OnTop: false,
},
Records: {
All: "",
Monthly: "",
}
};
 
||
You will need to make sure that the Data and NOAAReportsPath entries point to your data and reports respectively.
===== Explanation =====
There are now 4 sections:- '''Charts''', '''Custom''', '''Gull''' and '''Records''' as well as three primary settings:- '''Data''', '''Menu''' and '''NOAAReportPath'''.
 
Of these you will need to check, and probably edit, '''Data''' and '''NOAAReportPath''' as these two provide the path to your data, wherever you have uploaded it.
Based on some feedback, if you want to use the standard menu format you need to set 'StandardMenu' to true.
 
* '''Data''': This must be set to point to the folder to which you upload your data. By default CumulusMX uploads its data to the same location as the html pages but you may have changed this.
This will than use a bar menu across the top of the page.
** If you upload your data to the same folder as the pages, this option should be empty.
** If you upload your data to a folder below the pages folder, i.e., to a folder inside the folder containing your pages e.g., '''data''', then this entry can contain a '''relative''' path; i.e. 'data/', './data/'. It could also be an absolute path from the root of your website; i.e. '/<pages>/data/' where <pages> is the folder name containing your website.
** If you upload to a folder, for example called '''data''', above the pages folder, then this entry can be a relative path such as '../data/'. You can also use an absolute path if you prefer.
* '''NOAAReportPath''': This must point to your NOAA Reports. The default installation of CumulusMX places these in a sub-folder of the html pages location. If you have changed this then you will also need to edit this entry.
** The same formats are accepted; relative or absolute paths.
===== The Menu entry =====
This points to the location of the supplied menu structure which is similar the original supplied with the default website. '''Note''' It is '''NOT''' the same so you cannot use the default menu supplied with CumulusMX.
 
|}
I will be providing more detailed information here and on my Wiki soon.
==== Change Log ====
 
'''Update: 11/10/2025 Version 5.0.1'''
'''Changes'''
* Corrected the build number to b:005. This is the latest release. The only page that has changed is '''page-control.js'''.
|| <code>
cmxConfig = {
Charts: {
Trends: "",
Historic: "",
},
Custom: {
StandardMenu: false,
Dropdown: true,
Theme: "",
Logo: "",
BannerImage: "",
StaticHead: true,
StaticFoot: true,
PaddingTop: '2',
PaddingBottom: '1',
PaddingUnits: 'em',
},
Data: "",
Menu: 'js/ows-menu.js',
NOAAReportPath: 'Reports/',
Gull: {
Animation: "",
Speed: 5,
OnTop: false,
},
Records: {
All: "",
Monthly: "",
}
};
</code>
|}
 
=== Download ===
445

edits

Navigation menu