Reputation: 45
I have been looking around for awhile now and I can't seem to find an up to date example and my current knowledge of SharePoint as a whole is fairly minimal. What I need to do is append a column from a document library as well as the last date modified to PDFs as they are downloaded. As far as I can see there isn't a built in way to do this with SharePoint and the way to go is to produce an HttpHandler that changes the file name before it is downloaded.
I found this which is a good start and adding the code to manipulate the file name seems straightforward, but where I get stuck is actually creating the proper files and deploying it to SharePoint.
Any suggestions or examples would be much appreciated.
Upvotes: 1
Views: 1097
Reputation: 136
What you need to do is to packade your VisualStudio SharePoint project (features, packages etc.) in to a .wsp file. A .wsp file is simply a zip file that contains your artifacts that are going to be deployed to the hive (14 folder).
I would recommend you to use CKS Dev where you can in an easy way create the wsp. It is an open source plugin to VS 2010 found on code plex. CKS Dev on CodePlex
Next step is to copy this wsp to the server where it needs to be installed. And then issue some powershell commands on the server to install your code. Here is a link taking you through the steps of deployment
So in short:
1. Create wsp
2. Copy wsp
3. Install wsp on server
I hope it helps. Good luck.
Upvotes: 2