Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

2 Answers 2

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! –  C. Marius - MVP Apr 25 '12 at 13:42

VersioningEnabled="FALSE" on your list.

here is the full xml schema of what you can use http://msdn.microsoft.com/en-us/library/ms439434.aspx

share|improve this answer

Your Answer

 
discard

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.