I'm looking for an example SCHEMA.XML excerpt that demonstrates how to
add default content (i.e., prepopulate with documents) to a custom list
definition based on doclib.

The SDK shows (see below) how to do this for the Announcement List -
now how do I do it for a Document Library?

<List>
<Data>
<Rows>
<Row>
<Field Name="Title">Welcome to your new team web site!</Field>
<Field Name="Body">You can use this site to share information
with
members of the site. To add a new announcement, click "Add new
announcement"
above. This is a great way to communicate news with your
team.</Field>
<Field Name="Author"><ows:UserID/></Field>
<Field Name="Editor"><ows:UserID/></Field>
<Field Name="owshiddenversion">0</Field>
<Field Name="Expires"><ows:TodayISO/></Field>
</Row>
</Rows>
</Data>
</List>

Thanks!

John

RE: Default content for a Document Library by v-wdxu

v-wdxu
Fri Jun 03 03:58:53 CDT 2005

------=_NextPart_0001_DFBEDF2C
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi John,

So far as I know on this issue, we can't do this at the template. We can
only specify one template file for the document library. If you are going
to insert one document file into the doclib, we will need to use the SPS
object model to copy/create one file after the creation of this document
library. I'd suggest you can write one web part to create the document
library and then insert one file into the list.

Please feel free to let me know if you have any question. It is my pleasure
to be of any assistance.

Best Regards,
Wei-Dong XU
Microsoft Product Support Services
This posting is provided "AS IS" with no warranties, and confers no rights.

------=_NextPart_0001_DFBEDF2C
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit

{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\froman\fprq2\fcharset0 Bookman Old Style;}{\f1\froman\fprq2\fcharset134 \'cb\'ce\'cc\'e5;}}
\viewkind4\uc1\pard\lang2052\f0\fs23 Hi John,
\par
\par So far as I know on this issue, we can't do this at the template. We can only specify one template file for the document library. If you are going to insert one document file into the doclib, we will need to use the SPS object model to copy/create one file after the creation of this document library. I'd suggest you can write one web part to create the document library and then insert one file into the list.
\par
\par Please feel free to let me know if you have any question. \f1\fs22 It is my pleasure to be of any assistance.\f0\fs23
\par
\par Best Regards,
\par Wei-Dong XU
\par Microsoft Product Support Services
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par
\par }
------=_NextPart_0001_DFBEDF2C--


Re: Default content for a Document Library by John

John
Fri Jun 03 13:51:37 CDT 2005

Are you suggesting that while it is possible to save an existing
document library as a list template and include its content, that it is
not possible to do this in a list definition?

If it is possible to add an item to an Announcement List as the snippet
I included above shows, why would it not be possible to do the same for
a Document Library, which is simply another form of list?


Re: Default content for a Document Library by Mike

Mike
Sat Jun 04 06:23:35 CDT 2005

I wondered when I saw your first message in this thread but I think now I'm
sure.

You need to be posting this in the subnewsgroup for WSS Programming (see my
reply in a later thread for the address)

This (main - non-Programming) newsgroup isn't for how to do things that the
delivered WSS isn't designed for.

Mike Walsh, Helsinki, Finland
WSS FAQ at http://wss.collutions.com
Please reply to the newsgroup

"John Caruso" <johncaruso@email.com> wrote in message
news:1117824697.700951.32050@o13g2000cwo.googlegroups.com...
> Are you suggesting that while it is possible to save an existing
> document library as a list template and include its content, that it is
> not possible to do this in a list definition?
>
> If it is possible to add an item to an Announcement List as the snippet
> I included above shows, why would it not be possible to do the same for
> a Document Library, which is simply another form of list?
>



Re: Default content for a Document Library by John

John
Sat Jun 04 15:21:54 CDT 2005

So asking questions about custom site and list definitions is off-topic
here?

If so, I'll certainly ask elsewhere. Since such customization is not
performed via the programming API, I thought this was the appropriate
group.


Re: Default content for a Document Library by Mike

Mike
Sun Jun 05 02:20:16 CDT 2005

It's not a hard division but you seem to in both cases be wanting to extend
what WSS is capable of doing (rather than just tweaking it) and so it seemed
to me that you'd be more likely to get a response from the guys in WSS
Programming who specialise in extending what WSS does (via creating own web
parts or creating own user interfaces etc. using web services etc. etc.)
rather than here where more people are interested in just getting WSS to
work as MS intended (with minor tweaks, maybe)

I.e. I suspect you will find like-minded spirits there.

Mike Walsh, Helsinki, Finland


"John Caruso" <johncaruso@email.com> wrote in message
news:1117916508.969343.268030@g47g2000cwa.googlegroups.com...
> So asking questions about custom site and list definitions is off-topic
> here?
>
> If so, I'll certainly ask elsewhere. Since such customization is not
> performed via the programming API, I thought this was the appropriate
> group.
>



RE: Default content for a Document Library by v-wdxu

v-wdxu
Sun Jun 05 20:26:01 CDT 2005

------=_NextPart_0001_E9AB7D8D
Content-Type: text/plain
Content-Transfer-Encoding: 7bit


John has posted a new thread about this question at WSS developerment queue:
From: "John Caruso" <johncaruso@email.com>
Newsgroups: microsoft.public.sharepoint.windowsservices.development
Subject: Adding default content to a Document Library at list instantiation
Date: 4 Jun 2005 14:39:19 -0700

Best Regards,
Wei-Dong XU
Microsoft Product Support Services
This posting is provided "AS IS" with no warranties, and confers no rights.

------=_NextPart_0001_E9AB7D8D
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit

{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\froman\fprq2\fcharset0 Bookman Old Style;}}
\viewkind4\uc1\pard\lang2052\f0\fs23
\par John has posted a new thread about this question at WSS developerment queue:
\par From: "John Caruso" <johncaruso@email.com>
\par Newsgroups: microsoft.public.sharepoint.windowsservices.development
\par Subject: Adding default content to a Document Library at list instantiation
\par Date: 4 Jun 2005 14:39:19 -0700
\par
\par Best Regards,
\par Wei-Dong XU
\par Microsoft Product Support Services
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par
\par }
------=_NextPart_0001_E9AB7D8D--