I am installing a sub-site in Sharepoint 2010 using PowerShell. For all the sub-sites, we have configured sharepoint to launch a particular sub-site's default.aspx page as landing page after log-in. For my use case, I want override this behavior by launching a page being created as a part of a Feature used in this sub-site. How can I do that? Please help...
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
Here's the code which worked for me. I put it in Feature's Event Reciever
However, my changes don't show up until I disable and then re-enable my feature. Is there a work around for this? Please let me know. |
|||
|
|
Kosty, you can set the welcome page via the
If you are trying to achieve this with a page in the Layouts folder in the hive, see Redirect default.aspx or change default landing to page in _layouts folder? You can place this code in your feature receiver to set the welcome page when the feature is activated (and to set it back when the feature is deactivated). |
|||||||||||
|