Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To include

...

an

...

SSI

...

themeEclipse

...

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>
HTML
<p>This is clearly inappropriate because if a user requests your page on, say, 14 February 2013, the date will be incorrect.</p>

<p>So to force the web server to show the correct date, simply substitute the text for the variable name, in this case <span class="keyword">#SSI_DATELONG</span>.</p>

...

themeEclipse

...

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>
HTML
<p>If this page is now requested, it will look as the one below:</p>

<img class="screenshot naked" src="http://www.tri-line.com/common/img/documentation/tim_professional/	

When the page is requested, it will display as below:

Screenshotmacro
Borderfalse
Shadowfalse
URL/download/attachments/7242141/server_side_example.png

...