Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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

base template includes

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

Moderator: daj

Post Reply
ho66es
Posts: 38
Joined: Tue 26 Jan 2010 2:25 pm
Weather Station: Davi Vantage Vue
Operating System: Raspbian
Location: Belfast, UK
Contact:

base template includes

Post by ho66es »

hi

i wonder if it would be possible to have at the end of navbar section of html on all template pages something like

Code: Select all

<? include("navbar.php") ?>
also in the head something similar as in

Code: Select all

<? include("add_head.php") ?>
that way if i wished to add a couple of menu items or some javascript in headers of all templates it could easily be done/changed
my weather station is http://www.ho66es.org/weather
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: base template includes

Post by steve »

I don't really want to have PHP in the standard templates, I want them to be able to work everywhere whatever the server capability. But you could just edit yours to do whatever you want? That's the way I see the web stuff working - the supplied templates are the ones I use on my web site. You can use them "as is", or modify them, or create your own from scratch using HTML, PHP or whatever.
Steve
ho66es
Posts: 38
Joined: Tue 26 Jan 2010 2:25 pm
Weather Station: Davi Vantage Vue
Operating System: Raspbian
Location: Belfast, UK
Contact:

Re: base template includes

Post by ho66es »

gotcha, that makes sense now I think about it :)
my weather station is http://www.ho66es.org/weather
TNETWeather

Re: base template includes

Post by TNETWeather »

Realistically, if you are going to dabble with PHP, you will normally go towards a parsed system where you obtain all the data from tags, realtime uploads and forgo the default templates that come with Cumulus.

I agree with Steve in keeping the default templates as default usable as possible as there are many that simply are not ready for the leap to web design when they first start out.

Webtags, when uploaded can provide basically all the info the default templates provide with the exception of the graphs and you can still get those if you want.

These are very easy to implement and use.

http://wiki.sandaysoft.com/a/Webtags

My own version which stores the data differently and has self-display options to see what is in it.
http://cumulus.tnetweather.com/projects/tnetwebtags
Self-parsed: http://cumulus.tnetweather.com/tnetwebt ... ?parse=sce
ho66es
Posts: 38
Joined: Tue 26 Jan 2010 2:25 pm
Weather Station: Davi Vantage Vue
Operating System: Raspbian
Location: Belfast, UK
Contact:

Re: base template includes

Post by ho66es »

:) I have already converted the base templates to php and started to modify them already, also added a sky cam in although I think it would be better with slightly more wideangle view and at rear of house, that's gonna take a wireless ip camera though :)

I forgot how much fun php could be :)
my weather station is http://www.ho66es.org/weather
Post Reply