Php webtags: Difference between revisions

606 bytes added ,  16:47, 26 June 2020
m
Line 41: Line 41:
=== Version specific tags ===
=== Version specific tags ===


*This should be obvious, but people choosing ready made scripts often get caught out by this, expecting their script to give them web tags added in latest release. Each script provided by someone will make its selection of what PHP variables to define based on those tags and parameters available in the version they are using when their script was generated.  
*This should be obvious, but the web tags available depend on which flavour of Cumulus is being used (Cumulus 1 or MX), and also on whether the latest version is being used. People producing a ready-made script for others to use have a number of choices:
*# Make the script for the latest MX version, and assume all those who use it will also be using the latest MX version.
*# Make the script just for MX, so it won't work for Cumulus 1, and choose to include only web tags that are available for a wide range of MX versions
*# Make the script so it will return values for a large range of web tags in both Cumulus 1 and MX, but accept that some must return a sort of null if they are not available at version used by the person implementing the ready-made file(s).
 
 
*Each script provided by someone will make its selection of what PHP variables to define based on those tags and parameters available in the version they are using when their script was generated.  
*Individual web tags are added as releases progress, so very few were available in early versions of Cumulus 1, compared to latest versions. When Cumulus MX was first released it did not include all web tags available in the final release of Cumulus 1, now in its releases MX has many more web tags than Cumulus 1.  
*Individual web tags are added as releases progress, so very few were available in early versions of Cumulus 1, compared to latest versions. When Cumulus MX was first released it did not include all web tags available in the final release of Cumulus 1, now in its releases MX has many more web tags than Cumulus 1.  
*Also the input or output parameters available may change at a particular version, adding permutations that were not available when any particular script was produced.
*Also the input or output parameters available may change at a particular version, adding permutations that were not available when any particular script was produced.
5,838

edits