Statistics Example

This example shows you how to retrieve statistical information for the current item. The list of items can be a comma separated list of item numbers or item codes.

Smartsite SXML CopyCode image Copy Code
<se:statistics
    items="{itemdata.number()}"
    rowformat="Item {this.field(ItemNumber)} has been viewed {this.field(Pageviews)} times. The last visit was at {datetime.tolongdatetimestring(this.field(LastRequest))}."
/>
Example Result CopyCode image Copy Code
Item 3828 has been viewed 366 times. The last visit was at Friday, January 18, 2008 12:00:43 PM.