SharePoint 2013
Insert info about when the page was last modified and by whom using CSOM/JavaScript:
<script> SP.SOD.executeOrDelayUntilScriptLoaded((function () { var ctx = new SP.ClientContext.get_current(); var list = ctx.get_web().get_lists().getById(_spPageContextInfo.pageListId); var item = list.getItemById(_spPageContextInfo.pageItemId); ctx.load(item); ctx.executeQueryAsync(function () { var user = item.get_item('Editor'); document.getElementById('pageinfo').innerHTML = '<p>Last updated ' + item.get_item('Modified').toString('dd.MM.yyyy HH:mm') + ' by ' + user.get_lookupValue() + '</p>'; }); }), "SP.js");
</script><p id="pageinfo"> </p>
Sidst opdateret: 7. jan. 2015