ASPX templates
Version 4.x > ASPX templates > Custom Default Alias Path for specific user? View modes: 
User avatar
Certified Developer 8
Certified Developer 8
bryan-bit-wizards - 10/26/2009 11:28:58 AM
   
Custom Default Alias Path for specific user?
Is it possible to set the "default alias path" for a specific user programmatically? I have several users of a site, all with different permissions to access different areas of the site. I am trying to show the “root” for the site as a specific page for each user (depending on their permissions). Below is a sample structure and functionality.

Sample site structure
Index
- Node 1
- Node 2
- Node3

Admins users default page: index
Group1 users default page: node1
Group2 users default page: node2

-Bryan

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 11/4/2009 4:27:52 AM
   
RE:Custom Default Alias Path for specific user?
Hi Bryan,

Yes, you can set alias path of appropriate page into UserStartingAliasPath field of UserInfo object. You can find sample code how to edit UserInfo object in 'Managing users' article in DevGuide.

Best Regards,

Martin Dobsicek