Sharepoint 2010 How to deploy to Style Library

Posted: June 4, 2012 in code, Sharepoint 2010

Do you know what to do when we need to make a deploy specific to the style library or other logical folder of sharepoint 2010?

The solution is pretty simple but for most is not obvious so here goes the simple steps:
1- Create a Feature
2- Copy the resources to your feature folder
3- In the manifesto of your feature instantiate a module and define something similar to

The File element defines the resource to copy.
The url of the element indicates the destiny of the copy
The Path indicates the origin of the copy
Pay attention to what you choose in to the Type becouse here you can define if you intend to make the element ghostable or not.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s