WebAPI Example - loaditemversion
In this example, the xml for the current version (''-1") of a content item is loaded. This is the same xml edit item uses.
Smartsite SXML | Copy Code |
---|---|
<se:if expression="!request.isaimrequest()"> <se:webapi username="admin" method="loaditemversion" itemnumber="82171" save="versionxml" /> <pre>{string.xmlencode(buffer.get(versionxml,default=''))}</pre> </se:if> |