Download Chapter 2 Publicus ini
Transcript
SAXOTECH Online Tags Manual
The following conditions apply to global variables:
On a template, a global variables must be set in a macro. There must be a cache time on the macro.
If you use an additional macro on the same template, which refers to the global variable, the cache time MUST
be the same as on the initial global variable macro.
If you have a newslist tag on the same template, the macro on the news item will NOT have access to the
global variable, even if the newslist tag has the same cache time as the global variable macro.
Global variables only work on a single level and only when ALL cache times are the same.
Global variables are available in all object files. These variables are prefixed with ?@ like this:
<%?@hasimages%>
You can write global variables using object script.
Testing
You can use the following code to test if global variables are available in the object file:
[%{GlobalVariablesSupported=1}This objectfile supports global variables.%]
You can use the global variables in the same way as all other variables.
To set the global variable, use this syntax:
<%?@bar="value to be used"%>
Examples
Macro1.pbo
Sets the variable @bar:
<%?@bar=
"12"%>
Macro2.pbo
Activates the variable @bar:
<%@bar%>
Call both macros from a PBS-file
<pbs:name=
"Macro1">
<pbs:name=
"Macro2">
Inline objects
Inline objects allow you to format the string output with <pbs:#variable#> tags. The object is formatted like this:
<pbs:#ureg_message# object="[%<%variable$r(\"Wrong=Incorrect\")%>%]">
The quotation marks must be preceded by a backslash for the function to work.
Example
<a href="<pbs:!#LastReferrer# object="[%<%Variable%>%|%javascript:history.back();%]">">
101
Related documents
Bambini e sicurezza - SicurScuola Lombardia
User Manual: Vivotek VS7100
FAMIS Annual Financial Reporting User Manual
ECX Ruckus
Joomla! User Manual for 1.0.11
User Manual QuoteStation 4.0
ECX Torment
7 Modules, menus, composants et plugins …
RUCKUS® - Horizon Hobby
DAY ONE: JUNOS MONITORING AND TROUBLESHOOTING
American Dynamics Tyco ADSPOT User's Manual