3

Is it possible to Deploy a Webpart to multiple Site Collections, and not only to one?

3 Answers 3

1

If you are using SP2010 then there can be two type of deployments, Sand´box or Farm solution.

If you have built a farm solution, then you can go the Feature folder in 14 hive and look for your feature name. Once you get your feature name you would see your Feature.xml lying there.

In Feature.xml there would be a scope; if it is web then scope is site, if it is site then scope in Site collection and it is farm then scope is farm.

If you have deployed the feature where scope is site then you can activate at each site collection level and if it is web then you need to activate for each site you want to use.

0

Yes. If you have a web part available in one site collections, the feature is activated at the site or site collection level, but the solution is installed to the farm and deployed per web application.

To add the web part to other site collections, you can either activate it through site settings or automate it with PowerShell.

To activate it through PowerShell see Enable-SPFeature: http://technet.microsoft.com/en-us/library/ff607803.aspx

2
  • not a farm, solution is deployed to the web application :)
    – Alexander
    Mar 12, 2013 at 14:04
  • good point. I've clarified the wording.
    – Tom Resing
    Mar 12, 2013 at 14:22
0

If you have a Site scoped feature for your web parts, you can use the Enable-SPFeature cmdlet in PowerShell to enable the feature on all the site collections you want to: http://technet.microsoft.com/en-us/library/ff607803(v=office.14).aspx

8
  • how do i se if i have a site scoped solution?
    – Batistuta
    Mar 12, 2013 at 13:58
  • Where do you activate it ("Site Features", "Site Collection Features", etc.)? If it is a custom solution, you can see that when editing the feature in Visual Studio. Mar 12, 2013 at 14:03
  • Scope:Site and the items are in the Feature
    – Batistuta
    Mar 12, 2013 at 14:06
  • I have never heard about site scoped solution, what is it? oO
    – Alexander
    Mar 12, 2013 at 14:07
  • It doesn't matter if it is scoped at the site or site collection. Either way you can activate it with enable-spfeature.
    – Tom Resing
    Mar 12, 2013 at 14:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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