SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a custom page and want deploy it into the pages library of the site using a feature in SharePoint 2007. Whenever the activated the page should added into the pages library and should removed on the feature deactivation event.

share|improve this question
up vote 4 down vote accepted

You want to read up on the Module element of a Feature to do this.

I should also add that you will need a Feature Receiver if you want to remove the file from the library upon Feature Deactivation. Here's how.

share|improve this answer
Thanks for this answer. Great material. – trgraglia May 12 '11 at 14:08

Your Answer


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.