Recently I came across a requirement where I had to create a custom site definition with custom lists , custom content types and document libraries. I found providing site definition as a WSP file is the best way and using SharePoint Solution Generator I created WSP file for my customized site. [ To learn how to use SharePoint Generator to create WSP files, refer link : http://weblogs.asp.net/soever/archive/2006/11/11/SharePoint-Solution-Generator-_2D00_-part-1_3A00_-create-a-site-definition-from-an-existing-site.aspx ]
My original site had few of my custom lists links available on Quick Launch Bar. And visual studio project created for the site also had SharePoint Solution settings Quick Launch Default Option as TRUE
When I created a Site based on this new site template (Development site template section), site did not had these custom lists availble on Quick Launch Navigation bar. Although custom List instances were available on the site.
As my search, it seems that Quick launch navigation customizations gets lost using SharePoint Solution Generator.
[Here is the good link illustrating limitations of SharePoint Solution Generator : http://www.mtelligent.com/journal/2007/10/13/overcoming-the-limitations-of-the-sharepoint-solution-genera.html ]
Fix: -
In Onet.XML file for the site definition file,
- Find Configuration section
- Find List element for your custom list definition
- Add attribute QuickLaunchUrl="Lists/MyCustomList/AllItems.aspx"
- Rebuild the application
- Deply the application to get new updated WSP file.