Add list view webpart in site definition onet.xml

Here is how you add a List View Web Part in onet.xml of your site definition.

<Module Name="Reports" Url="" Path="">
<File Url="Report.aspx" NavBarHome="False">
<View List="12001" BaseViewID="0" WebPartZoneID="Left" WebPartOrder="1">
<WebPart xmlns="">
<Assembly>Microsoft.SharePoint, Version=, …</Assembly>
<Title>ListName</Title> -> Add the List Name


Post a Comment


This is a personal weblog. The opinions expressed here represent my own and not those of my employer or anyone else. Should you have any questions or concerns please e-mail me at .

Copyright (c) 2010 @ All rights are reserved.Do Not Copy.

@ Learning