views:

276

answers:

2

Is there any way to automatically deploy Control Adapters (some menu modifications) in SharePoint using WSP solution and features ? Can I programmatically edit/deploy some ".browser" file?

If it is not possible what are the alternatives (some good practice) ?

I need this for Publishing site.

+1  A: 

Hi,

you could give WSPBuilder a chance. It's a open source tool pack SharePoint solutions. I know with WSPBuilder you cloud definitely deploy files into the bin and resource folder within an application's directory (...\Inetpub\wwwroot\wss\VirtualDirectories\80).

So perhaps it is also possible to deploy files into the App_Browsers folder. I think it's worth a try.

Flo
+1  A: 

In addition, with Features you always have the ability to define a FeatureReceiver which basically is callout to a developer provided assembly for handing Feature lifecycle events (e.e. onFeatureInstalled, onFeatureActivated, etc.) There you would be able to write .Net code to interact with the infrastructure.

Mark Mascolino
You think that I should, inside Feature, write bare .NET code and put file in the physical folder ? Maybe it is worth a try if I can get full path within the Feature.
Robert Vuković
I think you should be able to get the applications folder via the SharePoint object model as you know to which application your feature was deployed to.
Flo
This is publishing site and will have to deploy to two virtual folders (FBA) :(. But maybe I could manage it also.
Robert Vuković