Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.11.4 (build 3133) - 25 May 2021 (please see announcement regarding releases since 3.5.0)
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Editing the Template Files

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
Nottub
Posts: 65
Joined: Fri 04 Dec 2020 4:35 pm
Weather Station: Davis VP2 (Cabled)
Operating System: RPi 4
Contact:

Editing the Template Files

Post by Nottub »

I have used the Wiki guidance on editing the template files to add an additional webpage, however the '/js/setpagedata.js' file has now bee changed and I'm struggling to find where to add a webpage.

If someone could point me in the right direction I'll be most grateful.


Regards

Nottub

User avatar
beteljuice
Posts: 3212
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Editing the Template Files

Post by beteljuice »

The big change was the shift to a separate menu file - js/menu.js

If that is your question just edit that file to add (navigation) for your new page.

Or ... You could play with this ;)
Image
......................Imagine, what you will KNOW tomorrow !

User avatar
ConligWX
Posts: 1266
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2 Plus w/DFARS
Operating System: Ubuntu 20.04.2 LTS - NUC
Location: Bangor, NI
Contact:

Re: Editing the Template Files

Post by ConligWX »

Nottub wrote:
Sat 27 Mar 2021 4:48 pm
I have used the Wiki guidance on editing the template files to add an additional webpage, however the '/js/setpagedata.js' file has now bee changed and I'm struggling to find where to add a webpage.

If someone could point me in the right direction I'll be most grateful.


Regards

Nottub
more info here: https://cumuluswiki.org/a/New_Default_W ... nformation
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir PA-II-SD • CumulusMX •

Nottub
Posts: 65
Joined: Fri 04 Dec 2020 4:35 pm
Weather Station: Davis VP2 (Cabled)
Operating System: RPi 4
Contact:

Re: Editing the Template Files

Post by Nottub »

ConligWX wrote:
Sat 27 Mar 2021 11:26 pm
Nottub wrote:
Sat 27 Mar 2021 4:48 pm
I have used the Wiki guidance on editing the template files to add an additional webpage, however the '/js/setpagedata.js' file has now bee changed and I'm struggling to find where to add a webpage.

If someone could point me in the right direction I'll be most grateful.


Regards

Nottub
more info here: https://cumuluswiki.org/a/New_Default_W ... nformation

ColingWX, I think thats the bit that has recently changed, I have used that guidance before, doesn't seem to reflect current scripts.


Beteljuice, i'll have a look there it looks like what I want, thanks.


Regards

Nottub

User avatar
ConligWX
Posts: 1266
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2 Plus w/DFARS
Operating System: Ubuntu 20.04.2 LTS - NUC
Location: Bangor, NI
Contact:

Re: Editing the Template Files

Post by ConligWX »

Nottub wrote:
Sun 28 Mar 2021 3:24 pm

ColingWX, I think thats the bit that has recently changed, I have used that guidance before, doesn't seem to reflect current scripts.
yes in the Announcments of 3.10.3 it already says:
The web page menu system has also evolved, it is now contained in it's own file "menu.js", and the definition is much simplified. If you have customised the menu then in the future I suggest you do not modify the default menu.js, create another copy and alter the filename in setpagedata.js (there is a smapleMenu.js included as well which shows an example of extending the menu system).

viewtopic.php?p=152491#p152491
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir PA-II-SD • CumulusMX •

User avatar
mcrossley
Posts: 8478
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Editing the Template Files

Post by mcrossley »

Nottub wrote:
Sun 28 Mar 2021 3:24 pm
ColingWX, I think thats the bit that has recently changed, I have used that guidance before, doesn't seem to reflect current scripts.
Wiki now updated.

User avatar
ConligWX
Posts: 1266
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2 Plus w/DFARS
Operating System: Ubuntu 20.04.2 LTS - NUC
Location: Bangor, NI
Contact:

Re: Editing the Template Files

Post by ConligWX »

mcrossley wrote:
Mon 29 Mar 2021 9:06 am
Nottub wrote:
Sun 28 Mar 2021 3:24 pm
ColingWX, I think thats the bit that has recently changed, I have used that guidance before, doesn't seem to reflect current scripts.
Wiki now updated.
Thanks Mark!
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir PA-II-SD • CumulusMX •

Nottub
Posts: 65
Joined: Fri 04 Dec 2020 4:35 pm
Weather Station: Davis VP2 (Cabled)
Operating System: RPi 4
Contact:

Re: Editing the Template Files

Post by Nottub »

mcrossley wrote:
Mon 29 Mar 2021 9:06 am
Nottub wrote:
Sun 28 Mar 2021 3:24 pm
ColingWX, I think thats the bit that has recently changed, I have used that guidance before, doesn't seem to reflect current scripts.
Wiki now updated.
And a huge thumbs up from me Mark.

As a complete numpty sometimes, I could follow Beteljuice’s guidance which worked perfectly.
Happy to see the Wiki updated though :D

Thanks again
Nottub

Post Reply