Is there a way to default a user to a specific node on login to the Umbraco Backoffice?
For example, if after a user logs in I'd like to default them to the Home > Articles node (which is a listing of articles in the system), how can this be done (if at all?). And can this be controlled on a per user type basis? I.e. an admin vs. a writer?
Yes it is possible for you to pick a node, where you want the user to start in the content tree when they are logged in. It is controlled on a per user.
So what you need to do is go to the user tab in the Umbraco backoffice, and then click on the user that you want to set the settings for. Then you should see a screenshot like below.
Here you can setup where the user should start in the content tree and in the media library too.
Thanks for this, but I'm referring to what the user sees on the right pane after login. Right now it shows the Welcome page (with training video links). I'd like that to load the content of the default node.
I have a similar situation where some users 'own' a single specific node. This is the only node they can access, so I'd like the edit page for it to display automatically when they log in. Setting the "Start Node in Content" property on the user simply restricts what nodes are visible in the tree.
Likewise, a different group of users can edit multiple areas, but they have one primary node that I'd like to default their view to. They should still be able to use the tree to navigate to other areas they can edit.
In both cases, configuring the permissions for the tree is simple. I'd just like to set a default node to display the edit page for when they log in.
Unfortunately what you're asking is not possible currently and I'm not sure when or if it will be.
Perhaps you can restrict the node entry to be closer to the actual node that the user can access to instead of for instance setting up the "Start node" to the "Homepage" you set it up to a subpage under, which the node they can access exists if you have not done so already.
You can always create a feature request about this on the issue tracker at issues.umbraco.org/issues
In the meantime, I'm thinking I might be able to create a view that contains the logic to redirect the user and set that as the default dashboard view. I'll post back here if I get something working.
The users with single-node access won't log in very often, and if it's too difficult for them to quickly make their changes they simply won't use it - so I want to streamline the edit process as much as possible for them.
what you could do is edit the file /Config/Dashboard.config and add your own usercontrol there with some custom logic that directly redirects you to the right node after login.
Instead of showing the Welcome screen; your usercontrol is shown or logic in this usercontrol is executed.
In this case, I'm simply displaying the edit page for the user's start node if they have one set. I may add some more code to show a different default node for users that don't have one set, but this covers my primary scenario.
I tried doing the above, as David suggested, however the redirect doesn't seem to be firing for me?
Has the functionality changed in the latest versions of Umbraco?
Also, does anyone know if it's possible to redirect a user to your custom section on login? It seems the 'Start node in content' property is limited to the content tree (obviously), but can this be changed to a custom tree node in a custom section?
I'd just like to update this thread as I found a solution to the above problem ^
Instead of creating a blank user control that adds the script, I instead created a new html view, with associated angular controller (both of which I specified in the package.manifest). I then updated the dashboard.config file to point to this view.
Then within the controller I created I've put:
// Expand the reports tree by default
navigationService.syncTree({tree: 'reports', path: ["-1","reports", "monthlyReport"], forceReload: true, activate: false});
// Now redirect to appropriate view
$location.url('/reports/reports/monthlyReport/all');
So effectively when the user hits my custom section, the tree will be expanded to the appropriate section via the navigationService, and then I redirect the user to that specific view.
Backoffice: Show node on login
Hi all,
Is there a way to default a user to a specific node on login to the Umbraco Backoffice?
For example, if after a user logs in I'd like to default them to the Home > Articles node (which is a listing of articles in the system), how can this be done (if at all?). And can this be controlled on a per user type basis? I.e. an admin vs. a writer?
Hi Stephen,
Yes it is possible for you to pick a node, where you want the user to start in the content tree when they are logged in. It is controlled on a per user.
So what you need to do is go to the user tab in the Umbraco backoffice, and then click on the user that you want to set the settings for. Then you should see a screenshot like below.
Here you can setup where the user should start in the content tree and in the media library too.
Hope this helps,
/Dennis
Hi Dennis,
Thanks for this, but I'm referring to what the user sees on the right pane after login. Right now it shows the Welcome page (with training video links). I'd like that to load the content of the default node.
Hi Stephen,
Did you ever find a solution to this?
I have a similar situation where some users 'own' a single specific node. This is the only node they can access, so I'd like the edit page for it to display automatically when they log in. Setting the "Start Node in Content" property on the user simply restricts what nodes are visible in the tree.
Likewise, a different group of users can edit multiple areas, but they have one primary node that I'd like to default their view to. They should still be able to use the tree to navigate to other areas they can edit.
In both cases, configuring the permissions for the tree is simple. I'd just like to set a default node to display the edit page for when they log in.
Hi David and welcome to the forums :)
Unfortunately what you're asking is not possible currently and I'm not sure when or if it will be.
Perhaps you can restrict the node entry to be closer to the actual node that the user can access to instead of for instance setting up the "Start node" to the "Homepage" you set it up to a subpage under, which the node they can access exists if you have not done so already.
You can always create a feature request about this on the issue tracker at issues.umbraco.org/issues
Hope this clear things up?
/Jan
Hi Jan,
Thanks for your quick response. I've done as you suggested and created an issue for this: http://issues.umbraco.org/issue/U4-8428
In the meantime, I'm thinking I might be able to create a view that contains the logic to redirect the user and set that as the default dashboard view. I'll post back here if I get something working.
The users with single-node access won't log in very often, and if it's too difficult for them to quickly make their changes they simply won't use it - so I want to streamline the edit process as much as possible for them.
Cheers, David
Hi guys,
what you could do is edit the file /Config/Dashboard.config and add your own usercontrol there with some custom logic that directly redirects you to the right node after login.
Instead of showing the Welcome screen; your usercontrol is shown or logic in this usercontrol is executed.
Maybe this could work!
Hi Jeffrey,
That's the approach I ended up going with.
I've added this to my dashboard.config in the "StartupDashboardSection":
Then in my usercontrol I have this code:
In this case, I'm simply displaying the edit page for the user's start node if they have one set. I may add some more code to show a different default node for users that don't have one set, but this covers my primary scenario.
Thanks guys.
I tried doing the above, as David suggested, however the redirect doesn't seem to be firing for me?
Has the functionality changed in the latest versions of Umbraco?
Also, does anyone know if it's possible to redirect a user to your custom section on login? It seems the 'Start node in content' property is limited to the content tree (obviously), but can this be changed to a custom tree node in a custom section?
I'd just like to update this thread as I found a solution to the above problem ^
Instead of creating a blank user control that adds the script, I instead created a new html view, with associated angular controller (both of which I specified in the package.manifest). I then updated the dashboard.config file to point to this view.
Then within the controller I created I've put:
So effectively when the user hits my custom section, the tree will be expanded to the appropriate section via the navigationService, and then I redirect the user to that specific view.
Hope this helps someone...
is working on a reply...