Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 5.x > Installation and deployment > User Start Page View modes: 
User avatar
Member
Member
knox-salug - 3/17/2011 1:19:48 PM
   
User Start Page
I'm not sure if this is the right forum to post this in or not, so if not please forgive me.

I want to configure it so that when a specific user logs in, it starts them on a specific page. What is the best way to accomplish this?

User avatar
Certified Developer 8
Certified Developer 8
dvanbale - 3/18/2011 2:34:57 AM
   
RE:User Start Page
Dear Salug,

Could you tell us wether you are using Portal or Template solution?

Regards,
dvanbale

User avatar
Kentico Support
Kentico Support
kentico_radekm - 3/18/2011 4:34:28 AM
   
RE:User Start Page
Hello.

There are several ways how to do it. If you mean it for CMSEditors, you can set "Starting alias path" in CMSDesk -> Administration -> Users - edit -> General section.

If you mean it for public users in some existing role, you can take an inspiration from following KB article.

Or, you can modify Logon form web part´s code-behind, or place custom web part (user control) or given page and do it with custom logic. All you need is to check user name, filled in logon form web part, or take it from CMS.CMSHelper.CMSContext.CurrentUser.UserName property, and write some decision-making logic, which will redirect given user to required URL. You can use UrlHelper.Redirect(string URL) method for this.

Best Regards,
Radek Macalik

User avatar
Member
Member
knox-salug - 3/18/2011 9:46:51 AM
   
RE:User Start Page
Thanks guys.

I just modified the code-behind of the logon page as described. Was hoping there would be a simple parameter to set for a user, but this gets the job done.