WSP for Site Definition does not show up when creating a new site. I uploaded a new wsp under the solution gallery of the site collection. I went to a sub site and click on Create from "all content" and I dont see the site def (wsp) that I uploaded and activated in the solution gallery.
In addition to your site template (onet.xml), you need either to add webtemp*.xml file or to include WebTemplate element in your solution.
WebTemplate element (recommended)
WebTemplate elements are added starting from SharePoint 2010. You can use features to add them to your portal, and this is the only approach which is avaliable for sandboxed solutions. Farm solutions can use WebTemplate elements too, of course.
Awesome article from Stefan Stanev about this:
Farm solutions can use webtemp*.xml files for the same purpose. Actually, it is an old way to provision information for your web template (inherited from SharePoint 2007), so I don't recommend you to use it.
This file should be placed to
This could be achieved with SharePoint Mapped Folder.
File should contain XML code, for example:
Additional MSDN articles:
Site definitions can not be deployed as sandboxed solutions. You must use a farm solution. If you built your wsp in Visual Studio, you need to change the Sandboxed Solution property of your project to False.