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 a custom list definition and a custom list instance in a feature.

If I want to populate some data in the list at its creation, I can use the data node.

How can I add an attachment to this item ?

I've tried to use a module

<Module Name="CustAttachment" Url="Lists/MyList/Attachments/1">
    <File Path="MyFile.doc" Url="MyFile.doc" Type="GhostableInLibrary" />
</Module>

But it does not works. It says "cannot create folder Lists/MyList/Attachments".

I know I can do this in code, but is there a xml-way of attaching a file in a custom list instance ?

thx

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.