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
Welcome to the Cumulus Support forum.
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4021) - 04 May 2024
Legacy Cumulus 1 release 1.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
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4021) - 04 May 2024
Legacy Cumulus 1 release 1.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
Moderator: daj
- beteljuice
- Posts: 3292
- 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
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
If that is your question just edit that file to add (navigation) for your new page.
Or ... You could play with this
......................Imagine, what you will KNOW tomorrow !
- ConligWX
- Posts: 1640
- Joined: Mon 19 May 2014 10:45 pm
- Weather Station: Davis vPro2+ w/DFARS + AirLink
- Operating System: Ubuntu 24.04 LTS
- Location: Bangor, NI
- Contact:
Re: Editing the Template Files
more info here: https://cumuluswiki.org/a/New_Default_W ... nformationNottub 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
Regards Simon
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
-
- Posts: 201
- Joined: Fri 04 Dec 2020 4:35 pm
- Weather Station: Davis VP2 (Cabled)
- Operating System: RPi 4 (Bookworm)
- Contact:
Re: Editing the Template Files
ConligWX wrote: ↑Sat 27 Mar 2021 11:26 pmmore info here: https://cumuluswiki.org/a/New_Default_W ... nformationNottub 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
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
- ConligWX
- Posts: 1640
- Joined: Mon 19 May 2014 10:45 pm
- Weather Station: Davis vPro2+ w/DFARS + AirLink
- Operating System: Ubuntu 24.04 LTS
- Location: Bangor, NI
- Contact:
Re: Editing the Template Files
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 • CumulusMX v4.0.0
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
- mcrossley
- Posts: 12812
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Editing the Template Files
Wiki now updated.
- ConligWX
- Posts: 1640
- Joined: Mon 19 May 2014 10:45 pm
- Weather Station: Davis vPro2+ w/DFARS + AirLink
- Operating System: Ubuntu 24.04 LTS
- Location: Bangor, NI
- Contact:
Re: Editing the Template Files
Thanks Mark!
Regards Simon
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
-
- Posts: 201
- Joined: Fri 04 Dec 2020 4:35 pm
- Weather Station: Davis VP2 (Cabled)
- Operating System: RPi 4 (Bookworm)
- Contact:
Re: Editing the Template Files
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
Thanks again
Nottub