...
To include an SSI variable you need to replace the type of data you want to display with the variable's name. The example below shows how to implement the inbuilt #SSI_DATELONG variable to display the current date every time a page is requested.
We start with a very basic HTML page:
Code Block |
---|
<HTML>
<BODY>
<H2>Welcome to my page. The date is 1 January 2012.</H2>
</BODY>
</HTML> |
For the data to change dynamically, substitute the data with SSI variable name, in our case #SSI_DATELONG.
Code Block |
---|
<HTML>
<BODY>
<H2>Welcome to my page. The date is #SSI_DATELONG.</H2>
</BODY>
</HTML> |
When the page is requested, it will display as below:
Screenshotmacro | ||||||
---|---|---|---|---|---|---|
|