Php webtags: Difference between revisions

23 bytes added ,  18:52, 26 June 2020
m
m (delete)
Line 202: Line 202:
*Cumulus MX web tags do allow embedding of HTML, see the [[Webtags|Web tags article]] for details.
*Cumulus MX web tags do allow embedding of HTML, see the [[Webtags|Web tags article]] for details.


== Ready made PHP Web Tag templates ==


It is perfectly possible to produce your own templates, following the advice in '''Option 2''' below, I know that might scare you.  
 
It is perfectly possible to produce your own templates, following the advice above, I know that might scare you.  
 
 
=== Modifying a ready made script ===
*One approach, that is perhaps easier is to modify a ready-made script (as has happened for some of those listed below) by adding new lines, each with a PHP variable name (it must start with "$") on the left of an equals sign and a web tag (<#tag_name>) on the right, and end the line with a ";".  
*One approach, that is perhaps easier is to modify a ready-made script (as has happened for some of those listed below) by adding new lines, each with a PHP variable name (it must start with "$") on the left of an equals sign and a web tag (<#tag_name>) on the right, and end the line with a ";".  
*You can add a comment at end of line using prefix "//".  
*You can add a comment at end of line using prefix "//".  
Line 214: Line 217:
*The scary bit is understanding the right format to use in those web tags for the output parameters because it is easy to specify items like minutes, hour, or month, incorrectly, especially if you have moved from Cumulus 1 to MX.
*The scary bit is understanding the right format to use in those web tags for the output parameters because it is easy to specify items like minutes, hour, or month, incorrectly, especially if you have moved from Cumulus 1 to MX.


== Ready made PHP Web Tag templates ==


*Be aware that if you are using Cumulus 1, when processing it ignores any web tags it does not recognise.  
*Be aware that if you are using Cumulus 1, when processing it ignores any web tags it does not recognise.  
5,838

edits