In my custom table I've got "LastEditedBy" column and I would like to fill in the column by the current user, is there any way that I can pass the current user ?
call event from your xml config file in the editor tag.
using Eksponent.Dewd;
using umbraco.BusinessLogic;
public static class MyClassEvents
{
public static void BeforeSave(object sender, BeforeSaveEventArgs e)
{
// tab name _ property name
e.Values["Properties_Last Modified By"] = User.GetCurrent().LoginName;
}
}
Get Current User in Dewd
Hi ,
In my custom table I've got "LastEditedBy" column and I would like to fill in the column by the current user, is there any way that I can pass the current user ?
I am currently using version 1.4.
Thanks
Ali
answer to my question,
call event from your xml config file in the editor tag.
this is event tag within the editor tag
is working on a reply...