Customised templates: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
1,347 bytes added ,  18:22, 10 May 2014
m
→‎What is meant by 'Cumulus processes templates': Added Mark Crossley's new diagram here as well
m (→‎What is meant by 'Cumulus processes templates': Added Mark Crossley's new diagram here as well)
Line 51: Line 51:


== What is meant by 'Cumulus processes templates' ==
== What is meant by 'Cumulus processes templates' ==
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.
#When Cumulus is ready to perform a web site update, it will read each template file:
#*those listed in table above if ''Include Standard Files'' is selected
#*those listed in [[Cumulus.ini#Section:_FTP_Site]] as local files (the first 10 appear on 'Files' tab in internet settings screen reached from configuration menu) that also have ''Process?'' selected (set to 1 in Cumulus.ini#Section:_FTP_Site).
#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 Hyper Text Mark-up Language structure and text as defined by the template.
#*Where it finds a web tag it will insert the relevant observations from the weather station, values calculated by Cumulus, time-stamps, or miscellaneous values, for each. 
#*The file name that Cumulus uses for the created local webpage depends on whether the original template is being processed by ''Include Standard Files'' (in which case the created web page is the same name without a T) or being processed as an ''Extra file'' because it is listed on the ''Files'' tab (or in cumulus.ini FTP section) as a local file (in which case the created web page is the same as the original filename with its extension but with 'tmp' suffixed to the extension).  The latter copes with customised templates that do not use the 'T' convention.[[File:Cumulus FTP Process.png]]
#Cumulus will FTP these up to your web space on the internet. If you have asked it to use ''Rename'' on the remote file, a temporary name is created with the suffix 'tmp' added to the final file name as shown in diagram above. The final file names on your web site will be as in table above, without the letter T for templates being processed by ''Include Standard Files'', or the name you specify for the remote file name on the ''Files' tab (or in [[Cumulus.ini#Section:_FTP_Site]]) for customised templates (The chart labels these as ''Extra files'').


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, with several other files, is fully described in [[Simple_Website_setup]].
 
The standard website set up is fully described in [[Simple_Website_setup]].


=Changing the Standard Templates=
=Changing the Standard Templates=
5,838

edits

Navigation menu