Customised templates: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
316 bytes removed ,  03:34, 11 August 2017
m
Line 151: Line 151:


==Changing the Standard Templates==
==Changing the Standard Templates==
=== Changing the appearance ===
If all you want to do is change the look of the web pages, then it is the CSS that needs to be changed, just changing the background picture is explained in [[FAQ#How_do_I_replace_the_.27bird.27_image_on_my_website.3F|this FAQ]], . If you don't like your text being converted to lower case see [[FAQ#I.27m_using_the_supplied_web_pages.2C_and_get_lower_case_in_places_where_I_want_upper_case|this FAQ]].  If you want a more extensive change to the look, you might want to consider a third-party template, see downloads page or the support forum, as a starting point.  If those don't suit you, you will need to learn about coding CSS (basically you specify selectors and for each selector you can specify a list of property names and their values), as the selectors available in CSS are really very clever now there is an awful lot you can do just using CSS, but it is too complicated to cover here.
If all you want to do is change the look of the web pages, then it is the CSS that needs to be changed, just changing the background picture is explained in [[FAQ#How_do_I_replace_the_.27bird.27_image_on_my_website.3F|this FAQ]], . If you don't like your text being converted to lower case see [[FAQ#I.27m_using_the_supplied_web_pages.2C_and_get_lower_case_in_places_where_I_want_upper_case|this FAQ]].  If you want a more extensive change to the look, you might want to consider a third-party template, see downloads page or the support forum, as a starting point.  If those don't suit you, you will need to learn about coding CSS (basically you specify selectors and for each selector you can specify a list of property names and their values), as the selectors available in CSS are really very clever now there is an awful lot you can do just using CSS, but it is too complicated to cover here.


This section covers how the templates are modified to include additional weather data, or remove itThis is generally done by adding or removing Cumulus [[webtags]], but you normally have to vary the HTML structure by adding/editing/removing table cell (<td> to </td>) elements and possibly add/remove a row (<tr class="...">  to </tr>) element.
=== Templates in cumulus\web\originals sub-folder ===
 
From version 1.8.9 onwards, the Cumulus installer installs the standard templates in a Cumulus subfolder called 'web/originals' so you can refer to them. '''Do not edit these.'''
 
===Editing to create one or more customised templates in the standard web sub-folder===
 
*Keep copies of any xxxT.htm files you modifyIt is best to back up the whole Cumulus folder onto a different disc on a regular basis.
*If you edit one or more of the templates, listed in the table above, in the ''cumulus\web'' sub-folder, keeping their original names, this has the advantage that Cumulus will [[#What is meant by 'Cumulus processes templates' |process ]] the customised template as if it is an unmodified standard one.
*You just need to have 'Include Standard Files' ticked (as shown above) on the ''Files'' tab of the '''Internet''' screen within the 'Configuration' menu.
 
*You can modify one or more of the template files listed above.  For example, you may wish to
*You can modify one or more of the template files listed above.  For example, you may wish to
**change the wording that appears on the web page by editing it on the template;
**change the wording that appears on the web page by editing it on the template;
Line 165: Line 176:
**Do not use a 'word processor' as that will introduce unwanted characters;
**Do not use a 'word processor' as that will introduce unwanted characters;
**Avoid most 'web page editors' (like wordpress) as they can change the page structure and remove the Cumulus web tags;
**Avoid most 'web page editors' (like wordpress) as they can change the page structure and remove the Cumulus web tags;
=== Templates in cumulus\web\originals sub-folder ===
From version 1.8.9 onwards, the Cumulus installer installs the standard templates in a Cumulus subfolder called 'web/originals' so you can refer to them. '''Do not edit these.'''
===Editing to create one or more customised templates in the standard web sub-folder===
*Keep copies of any xxxT.htm files you modify.  It is best to back up the whole Cumulus folder onto a different disc on a regular basis.
*If you edit one or more of the templates, listed in the table above, in the ''cumulus\web'' sub-folder, keeping their original names, this has the advantage that Cumulus will [[#What is meant by 'Cumulus processes templates' |process ]] the customised template as if it is an unmodified standard one.
*You just need to have 'Include Standard Files' ticked (as shown above) on the ''Files'' tab of the '''Internet''' screen within the 'Configuration' menu.
   
   
=== Coding standard and character encoding for Customised Templates using the same names as Standard Cumulus Templates ===
=== Coding standard and character encoding for Customised Templates using the same names as Standard Cumulus Templates ===
5,838

edits

Navigation menu