开发者

Setting up default web parts on a Wiki Page from a Web Template in SharePoint 2010?

My team is trying to build out a Web Template which includes an instantiated Wiki Page with some default Web Parts added to it; but we're unable to get this behavior to happen.

In brief, we're looking to add some default.aspx (or Home.aspx, the name is unimportant开发者_StackOverflow社区, just the functionality) to the SitePages directory, GhostableInLibrary; so it's visible to all SiteCollections made from this Web Template.

It is of note that we're basing our Web Collection off the Team Site, and that the Wiki will be the default Home Page for the new site.


Site templates can be used to customize newly created sites except for the top site of a site collection. Since site templates are all managed in site collection's Solution gallary, so a site template CAN'T be used to define its own container. You need a Site Definition to customize the first site of your site collection.

For how to use site template, you can goto, http://weblogs.asp.net/soever/archive/2009/10/19/sharepoint-2010-site-exporting-as-wsp-solution-part-1.aspx

For how to create a site definition, you can goto, http://msdn.microsoft.com/en-us/library/gg276356.aspx


If you want to strap onto an existing template without creating a new copy, or you don't have the original site template to access. You use a process called feature stapling.

When you create a sharepoint solution it would contain two features, one for your actual functionality and one that simple staples it to an existing template.

Here is an article discussing it some more. http://mssharepointtips.com/tip.asp?id=1065

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜