Php webtags: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
==Installation (with Cumulus 1) ==
 
##For the file you have downloaded at option 2 above, open it in any text editor (preferably one that works in "UTF-8 without BOM") and edit first line.
##FindIf the first line contains the following sequence of 4 characters "'''&''' '''l''' '''t''' ''';'''" andthen replace all of those with just one "''<''" (so the first line becomes "''<php''") NOTE - the Wiki cannot have a PHP script uploaded to it, so changing the first line stops the Wiki from treating it as PHP script, but after Cumulus has processed it (Cumulus does not care what it processes, but will copy anything it does not recognise across unchanged) we do want the generated file to be treated as a PHP script.
#Next add any parameter combinations that you need for your own implementation. For example, for my implementation, I replaced '''thismonthT.htm''' with '''thismonth.php''' and found that my customisation of the template version had used many more Cumulus web tags with parameters than I expected, consequently my cumuluswebtag.cum template file has (amongst others) the following extras
#*$LastDataReadTDM='<#LastDataReadT format=h:nn'.' on '.'<#LastDataReadT format="d mmm">';
#*$LastDataReadTDMY='<#LastDataReadT format="h:nn am/pm"> on calendar day <#LastDataReadT format="dddd d mmmm yyyy">';