0

I have scenario like need to add 2 master pages for same site. And need to give the permission like one master page let say masterPageA will be act as anonymous When user have required permission they can see the another master page i.e masterPageB. Is it possible in SP?

1

That may be possible if you develop (I mean: C#, Visual Studio, etc.) a custom module.

More precisely, you would develop an HTTP module. It would check the current status of the request (authenticated or not), and switch the master page on the fly from the PreInit event. See for instance http://ranaictiu-technicalblog.blogspot.com/2009/10/sharepoint-dynamically-change-master.html (section "Develop a HttpModule to attach PreInit event handler").

| improve this answer | |
  • I would stress the "may be" part and strongly advice against trying this at home :-) – Nils May 15 '19 at 7:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.