Php webtags: Difference between revisions

335 bytes added ,  08:26, 6 January 2015
m
no edit summary
No edit summary
mNo edit summary
Line 1: Line 1:
{{AddOnBanner|name=PHP Webtags|type=Web templates, PHP|author=David Jamieson|contact='DAJ' via the forum|updated=29 Dec 2011|version=1.18}}
{{AddOnBanner|name=PHP Webtags|type=Web templates, PHP|author=David Jamieson|contact='DAJ' via the forum|updated=29 Dec 2011|version=1.18}}
Cumulus automatically prepares a number of Web pages by using HTML template files.  These files contain [[webtags]] which Cumulus replaces with actual values from your weather station.
Cumulus automatically processes a number of template pages into HTML web pages.  These template files contain [[webtags]] which Cumulus replaces with actual values from your weather station.


For those using PHP on their website it is possible to have Cumulus process one single file and place all the [[webtags]] values into a file of PHP variables.  You can include this file in all your PHP webfiles and use the variables as you would in PHP.
If you adopt PHP Hypertext Processing on your web site, you could [[Customised_templates|customise]] those standard template pages by simply using PHP script to add extra content after the template has been processed by Cumulus.


The PHP file contains all current [[webtags]] produced by Cumulus.  (480 webtags as per [[version 1.9.2]]b1026)
It is more efficient  for those using PHP on their website to have Cumulus process one single file and place all the [[webtags]] values into a file of PHP variables.  You can include this file in all your PHP web files and use the variables as you would in PHP. In this case your customised pages would replace any reference to a Cumulus web tag <#xxyyzz> by a PHP variable $xxyyzz.
 
The PHP file contains all current [[webtags]] produced by Cumulus v 1.9.4 b.1099.


A similar project is available for [[xml webtags|XML webtags]] (Current unmaintained)
A similar project is available for [[xml webtags|XML webtags]] (Current unmaintained)
5,838

edits