different look and feel of the site based on the login user

Hi Friends,

I am having "N" number of sub sites in my site collection. For different login users I want to show the different look and feel for the sites. How can we do this. 

I heard we can use delegate control and we can achieve this. But I don't have an idea. How can we implement above scenario. If any one knows please help to resolve the issue.

Thanks,

Tiru

May 16th, 2015 1:41pm

Hi Tiru,

Per my understanding, you might want to show different look and feel based on current user.

Delegate control is a mechanism that we can inject a code or control to the SharePoint Master page without touching any code in the SharePoint Master page, you can add code behind in the delegate control to check the details of current user and change the style of the page dynamically.

About delegate control:

https://msdn.microsoft.com/en-us/library/ff650763.aspx?f=255&MSPPError=-2147217396

http://social.technet.microsoft.com/wiki/contents/articles/16186.aspx

More information about working with delegate control for your reference:

http://www.sharepointpals.com/post/Step-by-step-procedures-to-create-a-delegate-control-in-SharePoint-2010

http://chuvash.eu/2011/09/26/create-own-delegate-control/

About how to change theme programmatically:

http://www.c-sharpcorner.com/uploadfile/anavijai/programmatically-change-the-site-theme-in-sharepoint/

About how to get the details of the current user, SPWeb.CurrentUser property would be helpful:

https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.currentuser.aspx

Thanks
Free Windows Admin Tool Kit Click here and download it now
May 19th, 2015 3:19am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics