I see in the API there is a way to grab the UpdateDate field. Is there a way to determine WHO made the last update to a particular content node? In other words, the user ID of the person that last edited a particular node?
The WriterName property holds the value of the person who last updated a node. This is the partial view macro code I wrote for a macro to list the recent updates to the site.
@inherits Umbraco.Web.Macros.PartialViewMacroPage
@{
// Get root node:
var root = Model.Content.AncestorOrSelf();
// Get the most recently updated nodes
var nodes = root.Descendants().OrderByDescending(x => x.UpdateDate).Take(20);
}
<table class="table table-striped">
<tr><th>Updated</th><th>Created</th><th>Page</th></tr>
@foreach (var node in nodes)
{
<tr>
<td>
@node.UpdateDate.ToString("dd-MM-yy")
@node.UpdateDate.ToShortTimeString()
<br />
@node.WriterName
</td>
<td>
@node.CreateDate.ToString("dd-MM-yy")
@node.CreateDate.ToShortTimeString()
<br />
@node.CreatorName</td>
<td>
<a href="@node.Url">@node.Name</a>
</td>
</tr>
}
</table>
Determining Who Last Updated Content
I see in the API there is a way to grab the UpdateDate field. Is there a way to determine WHO made the last update to a particular content node? In other words, the user ID of the person that last edited a particular node?
Did you manage to find out how?
@Steve: I've answered your own post here http://our.umbraco.org/forum/using/ui-questions/60626-How-can-I-find-out-who-last-editedmovedetc-a-page-in-v6?p=0#comment205539
/Jan
The WriterName property holds the value of the person who last updated a node. This is the partial view macro code I wrote for a macro to list the recent updates to the site.
is working on a reply...