Today i had a head breaking issue. I needed two discussion boards placed on a WSS site using the ONET.XML template. Whatever i tried it resulted into another view of the same discussion board instead of a seperate discussion board. Then i saw it (together with a collegea)...
The following you have to add in the ONET.XML. First add a new ListTemplate element between the ListTemplates:
<ListTemplates>
...
<ListTemplate Name="discuss"
DisplayName="Discussiebord"
Type="999"
BaseType="3"
OnQuickLaunch="TRUE"
SecurityBits="12"
Description="..." Image="...">
</ListTemplate>
</ListTemplates>
According to the documentation: "The Name attribute must be set to the exact name of the new list folder. To identify the list, assign a numerical ID that is not being used elsewhere and that is less than 1000 to the type attribute".
In this case we use the same name as the already existing discussion board ListTemplate element.
The rest is very simple. Just add the new defined list as you do with each list. Put the following List element in the Lists inside the Configuration:
<Configuration ID="2" Name="Topic">
<Lists>
...
<List Title="Topic discussion" Url="..." QuickLaunchUrl="..." Type="999" />
</Lists>
</Configuration>
Finally put the View element in the File inside the Module:
<Modules>
<Module Name="Topic" Url="" Path="">
<File Url="default.aspx" NavBarHome="True">
...
<View List="999" BaseViewID="0" WebPartZoneID="Left" WebPartOrder="2" />
</File>
</Module>
</Modules>
Do'nt forget the restart IIS to see some results. :)