in

SharePoint Blogs

The Best Place for SharePoint-related Blogs

MOSS 2007 and Software Product Lines

Hi. My name is Alfred de Weerd. In this blog I will deal with MOSS 2007 and development professionalisation in general. I'm planning to write about subjects like a MOSS product line in general, reusable assets, software factories, processes and the like.

Creating Features by building a Virtual Site

 

In this post I'll Show you take how to generate features by First creating a Virtual Site, consisting of all your selected functionality from the original MOSS site. If you have created the Virtual Site, you can create all the features at once, using default settings, or you can generate them one by one ,giving you more control.

At this time, I have not included a great deal of logic into build process. It is planned for the next version of the MFG. So when you start editing Content Type ID's for example, you'll have to keep them in sync manually when you refer to them from List Templates. 

Therefore, it is not practical to generate hundreds of features at once. Package them into groups of ten or so.

If you want to have this information in a slightly more readable version, goto http://www.codeplex.com/mossfeaturegenerator and check out the MFG Quick guide.

 

The steps to create features from the MOSS GUI:

 

 

1 From the Main menu, choose Build à Site

 

 

A form now opens in which to the left a MOSS site will be shown (only Site Columns, Content Types, List Templates and List Instances). To the right, the functionalities you selected for the creation of features is shown.

 

 

   2 Enter a site Url and click Go. Then select a site.

 

 

 

 

The functionalities of the MOSS site will now be shown.

 

 

 

3 Drag en drop the functonalities from the real MOSS site to the Virtual Site, consisting of all the features you select.

 

 

You may now inspect the properties of the functionalities.

 

 

4 If you want to change properties, dubbelclick an item, and an appropriate properties screen will open. This is the same screen as when you create a functionality directly from a MOSS site.

 

5 If you wish to change the properties of the feature.xml, press, Specify Feature. A form will open, allowing you to specify properties for this specific feature.

 

6 Create a single feaure by adjusting the path and pressing the Create Feature. If you create a 12\Template\Features directory structure, you can use

WSPBuilder afterwards.

 

7 When you wish to create all the features at once, specify the path and press Create Features on the main form.  Note that when you create features in this way, you will be prompted with a form allowing you to specify a feature file for the combined Site Columns. The program cannot deduce the properties for this file from the collection of site columns.

 

8 If there are any XSD Validation Errors, the Show Schema Validation Errors button will be available.

 

9 By pressing the Show Schema Validation Errors button, you may open a form containing info about the validation errors.

 

 10 You now have your generated Feature.xml, Elements.xml, Schema.xml and your Forms and Views on the ListTemplates.

 

11 Your original functionality gets reproduced when you install and activate the features.

 

 

Comments

 

Links (4/15/2008) « Steve Pietrek’s SharePoint Stuff said:

Pingback from  Links (4/15/2008) « Steve Pietrek’s SharePoint Stuff

April 15, 2008 8:18 PM
 

Christopher Steen said:

Link Listing - April 17, 2008

April 17, 2008 11:27 PM
 

Christopher Steen said:

Sharepoint Logging exceptions to the SharePoint Trace Log (Diagnostic Logging) [Via: dwollerman ] Using...

April 17, 2008 11:27 PM

Leave a Comment

(required )  
(optional )
(required )  
Add

Need SharePoint Training? Attend a SharePoint Bootcamp!

Posts (c) their respective authors. Everything else (c) 2007 SharePoint Experts