Webtags/Parameters: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
98 bytes added ,  18:08, 3 October 2022
m
Line 448: Line 448:
Instead include whatever precedes the literal in a tag specification, then concatenate on the literal, and finally concatenate another tag specification for whatever is to follow the literal.   
Instead include whatever precedes the literal in a tag specification, then concatenate on the literal, and finally concatenate another tag specification for whatever is to follow the literal.   


An example to make this clearer is <code>$MXDateTime = '<#date format=yyyy-MM-dd>' . 'T' . '<#time format=hh:mm:ss>';</code>, which is written in PHP Hypertext Pre-processor format, the literal 'T' has been inserted by using two separate web tags surrounding the literal.  The same approach applies if you wanted to replace that "T" with a space.   
An '''example''' to make this clearer is <code>$MXDateTime = '<#date format=yyyy-MM-dd>' . 'T' . '<#time format=hh:mm:ss>';</code>, which is written in PHP Hypertext Pre-processor format, the literal 'T' has been inserted by using two separate web tags surrounding the literal.  The same approach applies if you wanted to replace that "T" with a space.  
NOTE: the same string is actually created by <code>$MXDateTime = '<#date format=s>'</code>.


The reason is preventing complex mixup of single and double quotes between the script language and CumulusMX.
The reason is preventing complex mixup of single and double quotes between the script language and CumulusMX.

Navigation menu