Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

share|improve this question
add comment

3 Answers 3

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.

share|improve this answer
add comment

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

share|improve this answer
    
not a farm, solution is deployed to the web application :) –  Alexander Mar 12 '13 at 14:04
    
good point. I've clarified the wording. –  Tom Resing Mar 12 '13 at 14:22
add comment

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

share|improve this answer
    
how do i se if i have a site scoped solution? –  Martin Mar 12 '13 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. –  John Chapman Mar 12 '13 at 14:03
    
Scope:Site and the items are in the Feature –  Martin Mar 12 '13 at 14:06
    
I have never heard about site scoped solution, what is it? oO –  Alexander Mar 12 '13 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 '13 at 14:19
show 3 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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