MOSS Forum

Ask Question   UnAnswered
Home » Forum » MOSS       RSS Feeds

WSS 3.0 / MOSS 2007 - cant create lists in custom built sitetemplate

  Asked By: Grayson    Date: Dec 23    Category: MOSS    Views: 1646

I have built some custom sitetemplates in CAML (onet.xml). But in my sites that
is built on these sitetemplates I cant create any lists.

I thought it was the <ListTemplates><ListTemplate> elements in onet.xml that
made this function. But I cant get it to work.

If I want to be able to create a documentlibrary in a site of my sitetemplate,
how should I write my onet.xml, what should I include?



2 Answers Found

Answer #1    Answered By: Gabriel Patterson     Answered On: Dec 23

Normally the <ListTemplates> section of the ONET.xml file is left empty in a
2007 site. This is primarily for backwards compatibility. In 2003 this section
was used to reference the Schema for all the lists  that you would like
available. In 2007 these Schemas are all loaded through centralized Features.

So the answer is don't do anything unless you are trying to load a custom  list
definition. All the standard List Templates will be loaded automatically.
Leave the <ListTemplates> section empty.

Answer #2    Answered By: Victor Hughes     Answered On: Dec 23

Your answer made me see - I have to put the "Team Collaboration" feature to the
webfeatures element. Then the "Team Collaboration" feature is activated by
default and I can create  the lists.