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 created a new document library template in CAML using the Visual Studio template. I have only made a couple of changes and these are all in the Elements.xml (e.g. to change the title, id etc. I have various customisations that i apply using a list created event reciever that checks the template id and only performs customisations on my library.

My problem is that my event reciever sets the versioning settings and document template, so i don't want these options to appear when the list is created from the front-end (as they'll be overwritten).

Is there any way of customising new.aspx or even better, is there something in my library definition that i can change to control what options are displayed when the library is created.

Many Thanks

share|improve this question
up vote 0 down vote accepted

Hope I understood completely what you're trying to achieve:

  • If you are refering to the way (screen) a list gets created by End-User you have few options - you could on the other hand create your own form which reads minimal parameters and creates the list programatically, so you avoid that alltogether.
  • You could have a SPListEventReceiver for your sub-Site that would handle (and Ignore) user's selection acting upon ListAdding/-Added and do your own processing.
  • Or if your interest is more about how the form for NEW ITEM behaves, that is controllable by your list Schema.xml and the Field definitions, where you get to specify which fields are visible on the NEW Form (e.g. ShowInNewForm="FALSE" - to hide a field)

Hope this covers it, C:\Marius

share|improve this answer
Hi Marius. Thanks it was the first of your points that i have been trying to achieve, i have started using the approach in your second point which seems fine, bit of a shame i can't use the exiting create framework though. – toby Apr 25 '12 at 13:39
Glad I could help! – Marius Constantinescu - MVP Apr 25 '12 at 13:42

VersioningEnabled="FALSE" on your list.

here is the full xml schema of what you can use

share|improve this answer

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.