Php webtags: Difference between revisions
From Cumulus Wiki
Jump to navigationJump to search
m (→Option 3: EXtensible Markup Language alternative: Updated) |
SaratogaWX (talk | contribs) m (Text replacement - "http://sandaysoft.com/forum/" to "https://cumulus.hosiene.co.uk/") |
||
Line 34: | Line 34: | ||
Another approach is to create a separate PHP variable (or in a few cases an array) for each Cumulus web tag. | Another approach is to create a separate PHP variable (or in a few cases an array) for each Cumulus web tag. | ||
*For a discussion about problems with delimiting strings see [ | *For a discussion about problems with delimiting strings see [https://cumulus.hosiene.co.uk/viewtopic.php?f=4&t=1 another cumulus support forum thread link]. | ||
*In this case your customised pages would replace any reference to a Cumulus web tag <code><#xxyyzz optional_parameter></code> by a PHP variable or array - either <code>$xxyyzz[optional_index]</code> or <code>$xyyxwx</code>. | *In this case your customised pages would replace any reference to a Cumulus web tag <code><#xxyyzz optional_parameter></code> by a PHP variable or array - either <code>$xxyyzz[optional_index]</code> or <code>$xyyxwx</code>. | ||
*In your customised pages, use the instruction '''require cumuluswebtags.php'''. | *In your customised pages, use the instruction '''require cumuluswebtags.php'''. | ||
*To produce this PHP file, you need a template file that is [[Customised_templates#What_is_meant_by_.27Cumulus_processes_templates.27|processed]] by Cumulus. | *To produce this PHP file, you need a template file that is [[Customised_templates#What_is_meant_by_.27Cumulus_processes_templates.27|processed]] by Cumulus. | ||
*You may prefer the template that you can download at [ | *You may prefer the template that you can download at [https://cumulus.hosiene.co.uk/viewtopic.php?f=6&t=10424 cumulus web tags support forum link]. | ||
*The download file on this page (download [[File:Cumuluswebtags.txt]]) contains all current [[webtags]] produced by Cumulus v 1.9.4. | *The download file on this page (download [[File:Cumuluswebtags.txt]]) contains all current [[webtags]] produced by Cumulus v 1.9.4. | ||
'''IMPORTANT''' This file is only for use with Cumulus v1.9.4, it will not work with Cumulus [[Webtags#New_Webtags_in_MX_builds| MX]]. | '''IMPORTANT''' This file is only for use with Cumulus v1.9.4, it will not work with Cumulus [[Webtags#New_Webtags_in_MX_builds| MX]]. |