Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Is there a way to display the name of the user logged in on the dashboard
e.g. Hello Admin
Hi,
Not by default, but it would be very simple to make a custom dashboard control that did this.
Basically you would just make a normal usercontrol, and add it to /config/Dashboard.config to make it show up.
In your usercontrol you can use something like this to get the user's name: umbraco.BusinessLogic.User.GetCurrent().Name;
-Tom
Hey,
Yes, you need to create a usercontol and use this code. You need to add a reference to businesslogic (which you can grab from the websites bin directory)
Hello <%=umbraco.BusinessLogic.User.GetCurrent().Name%>
You might also be able to do this in Razor?
You'll then need to add this user control / tab to your /config/Dashboard.config file.
Rich
Cross post :)
Thanks, got it working now :)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Display username in dashboard
Is there a way to display the name of the user logged in on the dashboard
e.g. Hello Admin
Hi,
Not by default, but it would be very simple to make a custom dashboard control that did this.
Basically you would just make a normal usercontrol, and add it to /config/Dashboard.config to make it show up.
In your usercontrol you can use something like this to get the user's name: umbraco.BusinessLogic.User.GetCurrent().Name;
-Tom
Hey,
Yes, you need to create a usercontol and use this code. You need to add a reference to businesslogic (which you can grab from the websites bin directory)
You might also be able to do this in Razor?
You'll then need to add this user control / tab to your /config/Dashboard.config file.
Rich
Cross post :)
Thanks, got it working now :)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.