views:

1580

answers:

3

Hello, I'm using WSPBuilder and I want to create a site definition this site definition contains some custom list definition (some list creates based on "Custom List" template). The site contains also some files the will copied to _layouts folder (which I know how to include it the .wsp file). My request here is how i can create the site definition and it's onet.xml please a feature that creates some lists based on "Custom List", and when i create a site using the site definition it will create all pages and do some stuff through site provisioning class?

Regards.

A: 

This link might give you what you need.

F.Aquino
I read this article before but what i need is how to create lists based on Custom List and put it in the site definition and it will create automatically when create site based on that site definition
Pr0fess0rX
Then you are on to a concept called "Feature Stapling" in which you deploy your custom list feature normally (as in any article you will find) and create another feature to tie your feature with a site definition. Try this link: http://sharepointmagazine.net/technical/development/introduction-to-sharepoint-feature-stapling-part-1 jump to the "Creating the Stapling Feature feature" part
F.Aquino
F.Aquino thnx for your comment it's really helpful and this is the 1st time for me to know Feature Stapling, so thank you, but i found a useful link do what exactly i want. thnx.
Pr0fess0rX
+1  A: 

You could set up the website with the customs lists the way you want it to be in your browser, and use the SharePoint Solution Generator to create the site definition.
Because the SharePoint Solution Generator is part of the Windows SharePoint Services 3.0 Tools: Visual Studio 2008 Extensions, Version 1.2 this method has one drawback: no WSPBuilder-support.
But when you deploy the SharePoint Solution Generator's Solution, you will find all the files you need for WSPBuilder in the /bin/debug directory.

I know how to do it with VSeWSS, but I need it here using WSPBuilder. anyway thank you for your reply.
Pr0fess0rX
+1  A: 

This link http://goo.gl/6RHu helped

Pr0fess0rX