Customised templates: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
1,272 bytes added ,  07:47, 8 May 2014
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)
Line 1: Line 1:
It is possible to take the standard Cumulus web templates and customise these to your own requirements.  A basic understanding of HTML is useful.
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]]
[[Category:WebTools]]
=How Cumulus uses its templates=
=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:
Cumulus has a number of template files that it uses if you select to 'Include standard files' within Internet Configuration:
[[File:SimpleInternet-StandardTicks.png]]
[[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:
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:


*indexT.htm
{| border="1" class="wikitable"
*todayT.htm
|-
*yesterdayT.htm
! style="width:65px" | Template
*recordT.htm
! style="width:250px" | Introduced
*gaugesT.htm
! style="width:400px" | Description
*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
|}


From v.1.9.3 another was added:
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.
*monthlyrecordT.htm


When Cumulus is ready to perform a web site update, it will process each of these files, insert the relevant data from the weather station and create local webpages (optionally with temp suffix) for each.  Once completed Cumulus will FTP these up to your web space on the internet.  The final filenames on your web site will be as above, without the letter T at the end.
Where it finds a web tag it will insert the relevant observations, calculated values, or time-stamps from the weather station for each.  Once it has completed creating all the web pages with 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.


The standard website set up is fully described in [[Simple_Website_setup]].
The standard website set up is fully described in [[Simple_Website_setup]].
5,838

edits

Navigation menu