1

I have to add the default images to the picture library with list instance.

List Instance as-

<ListInstance Title="Picture Library" OnQuickLaunch="TRUE" TemplateType="109" Url="Lists/Picture Library" Description="My List Instance">
<Data>
<Rows>
<Row>
<Field Name="Photo"></Field>
</Row>
</Rows>
</Data>
</ListInstance>

How to add the local image to the Field? I have this link, but here we can add only list items.

0

Ram,

You need to add a separate module to provisions files in the Picture Library, please follow the instructions in the given blog:

Copy JS files in Library

The difference will be in the URL you will be giving your picture library URL instead of documents, and the files will be image files not JS files.

If this doesn't work you might need to change the List to a Library, either a document, picture or asset library.

I hope this helps.

|improve this answer|||||
  • I have added it but, still the images are not seen in the new created page library. – Ram Oct 21 '16 at 4:51
  • Can you provide your Elements.xml file in the question pls – Arsalan Adam Khatri Nov 15 '16 at 5:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.