Replacing SharePoint site creation page
April 13th, 2006 // 2:04 pm @ Amar
By default, when you want to create a new site or subsite, SharePoint presents the default site creation page. If you want to replace this page with your custom page, e.g if you want to add some more properties to the site, or do some checks before and after the site creation process, then the best way is to create your own page for doing this and instruct SharePoint to use your page instead. Here is how to do it:
- Create an .aspx page with your custom code for inputting user details, creating site and any additional activities.
- Place this file somewhere in the _layouts folder. This is not necessary, but just for uniformity you can keep the page in _layouts or _layouts/1033 or any other subfolder.
- Deploy the dll for that .aspx page in the appropriate bin directory for the web application.
- Go to SharePoint Site Settings. In the General Settings section, click on Change portal site properties and SharePoint site creation settings
- In the Location for Creating SharePoint Sites section, enter the link to your new custom site creation page.
That’s it. Whenever someone tries to create a new site, they will be redirected to your custom site creation page.
Category : SharePoint