I'm using Sharepoint 2010 its a publishing site and i have different pages in the Pages folder(Which is a default one). Its a simple query i have 3 different type of users. What i want is to get a welcome page according to the type of user who logs in. For example if i'm logging in as user 1 then i should be able to see page 1 so on and so forth. Thanks in advance for the answers.
migrated from stackoverflow.com Jul 7 '12 at 11:09
This question came from our site for professional and enthusiast programmers.
With OOTB (out of the box) Functionality you could achieve that with a content query webpart which is filtered to the current user. Your pages per user of course would need some kind of property which denotes the user. However you would need to create some XSLT which renders the pages like you want them to be rendered.
A quicker solution would be to create custom code to switch the page depending on the user - again you would need some field on the page saying for which user it is.
If the layout is the same but the content is different, I would suggest to add all webparts for all users on the same page and apply audience targeting on these audience. You can create audience for SharePoint groups on the fly so you don't have to do additional stuff AD / Audience wise.
This will ensure that if the layout (eg : 25 - 50 - 25) is the same for all groups, you can safely put each similar webparts under each others in the target area and apply audience filtering on each webpart to ensure only the relevant ones will be displayed for the logged on user.
Hope it helped.