I am using Parentweb.Webs.Add to add subsite. However the default.aspx comes with sharepoint log which I dont need. Also I need to move the announce webpart zone to the right. And delete calendar webpart. How do I do this programatically (not sharepoint designer)? I like to modify the page right after the creating the subsite.
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
If you interrogate the SPWebPartManager for that page once it's been provisioned, you can mess around with the web parts on the page. |
|||||
|
|
Now no errors with this code but It does not move the webpart to right side.
using (SPLimitedWebPartManager wpm = web.GetLimitedWebPartManager(file.ServerRelativeUrl, PersonalizationScope.Shared))
{
List webparts = new List();
|
|||
|
|
You could create a new Site Template with the exact layout you need and provision your new site from that template. |
|||
|