MOSS Forum

 
Home » Forum » MOSS       Ask a questionRSS Feeds

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

  Asked By: Grayson Conrad         Date: Dec 23, 2007      Category: MOSS      Views: 353
 

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?

Tagged:                    

 

2 Answers Found

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

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, 2007       

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.

 


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].