Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Changing User Context dynamically View modes: 
User avatar
Member
Member
bsatish417-gmail - 6/24/2011 5:12:25 PM
   
Changing User Context dynamically
Hi ,

we are using DHTMLX tree grid with list of names & each name has different role & Based on role he should be able to see the menu items & other pages

How can i reset the Cms context user object to a particular user , when a user is selected from treegid ?

Thanks,
Satish

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 6/25/2011 7:14:54 AM
   
RE:Changing User Context dynamically
Hi Satish,


You can "log out" the current user by the method:

CMSContext.CurrentUser.Invalidate()

and "log on" by: Authenticating user API method.


Best regards,
Helena Grulichova

User avatar
Member
Member
bsatish417-gmail - 6/25/2011 1:44:36 PM
   
RE:Changing User Context dynamically
thanks for the information, We are not using the code behind pages
We are adding the pages to the portal using portal templates. so does this mean
that i need to create a custom webpart to do the above functionality & use the webpart in the portal template ?

Thanks
satish

User avatar
Member
Member
bsatish417-gmail - 6/28/2011 5:18:54 PM
   
RE:Changing User Context dynamically
HI ,

Any one have idea, how to resolve this ?

Thanks
Satish

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 6/30/2011 7:26:21 AM
   
RE:Changing User Context dynamically
Hi,


yes, you can create a new web part or control (Adding custom code to the portal engine template). Or you can add the code to another custom web part/control.


Best regards,
Helena Grulichova