Use this function to retrieve the logs of a template file
Parameters are taken from tag (default) or from HTTP GET/Post
Name | Mandatory | Default | Description |
---|---|---|---|
filename | Yes | the filename (related to the root). Ex: /templates/maintemplates/maintemplate.html | |
output_format | No | REST | JSON to retrieve response in JSON Format or REST to retrieve in REST Format |
jsoncallback | No | Callback function to use in JSON Response Format |
Code | Description |
---|---|
1 | Insufficient rights. You must be logged as an admin to see logs |
114 | File not found |
<#get_wwwfile_logs filename="/templates/maintemplates/maintemplate.html">
will output in REST
<rsp stat="ok"> <log> <revision>7689</revision> <author>nik</author> <date>2/22/2013 1:10:45 PM</date> </log> <log> <revision>7658</revision> <author>www.arkadia.com</author> <date>2/21/2013 9:07:25 AM</date> </log> </rsp>
And in JSON
{ "stat":"ok", "logs":[ { "revision":"7689", "author":"nik", "date":"2/22/2013 1:10:45 PM" }, { "revision":"7658", "author":"www.arkadia.com", "date":"2/21/2013 9:07:25 AM" } ] }