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

If anyone knows I want to know how to make picture library in site definition? Thanks in advance.

share|improve this question

1 Answer 1

You can do it in 2 ways:

  1. Add a new feature (Feature_1) & add a receiver code to create a library (if already not present) of type picture library (you will be giving the list type here)

OR

  1. Add a list instance based on the picture library template ID (you can find the template ID of all OOB lists in google search). Wrap this in a feature (Feature_2)

Now, you can use either of the above feature's reference in your Onet.xml under required SCOPE.

share|improve this answer
    
I want to make it from ListDefinition & ListInstance as we used for making custom list & document library. –  Harsh Bhavsar Mar 15 '13 at 12:01

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.