Site and System Information Example

Example which renders site and system information in a html table, such as the nameĀ and description of the site, serveraddress, rootpath, memory-usage, etcetera.

Smartsite SXML CopyCode image Copy Code
<table>
<tr><td>Site</td><td>{site.name()}</td></tr>
<tr><td>Friendly name</td><td>{site.friendlyname()}</td></tr>
<tr><td>Description</td><td>{site.description()}</td></tr>
<tr><td>Address</td><td>{env.serveraddress()}</td></tr>
<tr><td>RootPath</td><td>{site.rootpath()}</td></tr>
.<tr><td>WebRootPath</td><td>{site.webrootpath()}</td></tr>
<tr><td>Server name</td><td>{env.servername()}</td></tr>
<tr><td>Process id</td><td>{env.processid()}</td></tr>
<tr><td>Account</td><td>{env.identity()}</td></tr>
<tr><td>Mem usage</td><td>{string.formatsize(env.memoryusage())}</td></tr>
<tr><td>Start date</td><td>{site.startdate()}</td></tr>
</table>