Customised templates: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
m
→‎How Cumulus uses its templates: corrected list, added mention of charset change
m (→‎Creating Your Own Templates: Ensuring look consistent throughout section)
m (→‎How Cumulus uses its templates: corrected list, added mention of charset change)
It is possible to take the standard Cumulus web templates and customise these to your own requirements. A basic understanding of HTML is useful.
[[Category:WebTools]]
=How Cumulus uses its standard templates=
 
Cumulus has a number of template files that it uses if you select to 'Include the standard files' within Internet Configuration:
[[File:SimpleInternet-StandardTicks.png]]
 
The template files are stored in the 'web' folder under your Cumulus installation on your PC. They all have a 'T' (for 'template') in their names. As at version 1.9.2 the following exist:
 
{| border="1" class="wikitable"
*indexT.htm
|-
*todayT.htm
! style="width:65px" | Template
*yesterdayT.htm
! style="width:250px" | Introduced
*recordT.htm
! style="width:400px" | Description
*gaugesT.htm
|-
*trendsT.htm
*|indexT.htm
|from version 1.0 27th January 2004
|Shows latest observations and calculated values
|-
*|todayT.htm
|from version 1.0 27th January 2004
|Shows today's extremes
|-
*|trendsT.htm
|from version 1.0 27th January 2004
|Has thumbnails of standard graphs, select one to display equivalent full trend graph.
|-
*|recordT.htm
|from version 1.0 27th January 2004
|Shows all-time extremes
|-
*|yesterdayT.htm
|from version 1.5.1 10th January 2006
|Shows yesterday's extremes
|-
|thisyearT.htm
|from version 1.5.1 10th January 2006
|Shows latest annual extremes
|-
|thismonthT.htm
|first release not recorded
|Shows extremes for latest month
|-
*|gaugesT.htm
|from version 1.7.11 21st June 2008
|Includes some free gauges originally written for FreeWX, displays the three wind gauges from the Cumulus main screen and two real time wind gauges.
|-
*|monthlyrecordT.htm
|from version 1.9.3 10th April 2012
|Shows extremes for a particular month in all years
|}
 
When Cumulus is ready to perform a web site update, it will read each of these template files, and run a process that creates locally web pages (until build 1092 the created pages were in XHTML 1.0 Transitional using charset=iso-8859-1; from build 1093 the created pages are in HTML 5 using charset="UTF-8") by inserting text from the template.
From v.1.9.3 another was added:
*monthlyrecordT.htm
 
WhenWhere Cumulusit is ready to performfinds a web site update,tag it will processinsert eachthe ofrelevant these filesobservations, insertcalculated thevalues, relevantor datatime-stamps from the weather station andfor createeach. local webpagesOnce (optionallyit withhas tempcompleted suffix)creating forall each.the web Oncepages completedwith names like 'trendsT.htmtmp', Cumulus will FTP these up to your web space on the internet. The final filenames on your web site will be as in table above, without the letter T at the end.
 
The standard website set up is fully described in [[Simple_Website_setup]].
5,838

edits

Navigation menu