MOSS Forum

Ask Question   UnAnswered
Home » Forum » MOSS       RSS Feeds

How can we create a site variation programmatically?

  Asked By: Dominique    Date: Apr 21    Category: MOSS    Views: 9163

We have already multiple variations supporting our production web site based on MOSS 2007.

In few months, we need to create a lot (14) new sub-sites in the hierarchy of our source variation. In some environment, we’ll need to force those new sub-sites to be varied in all our variations.

Is there an API call that we can use to reproduce the behaviour of the page “newvariationsite.aspx” used to do in the MOSS UI?



1 Answer Found

Answer #1    Answered By: Jamila Guthrie     Answered On: Apr 21

There is a great article (lankamp.net/.../...ariations-programmatically.aspx) describing the solution step by step. Although the presented approach isn't supported by Microsoft (all variations  related classed are internally scoped what means that they cannot be referenced by non-SharePoint code). The presented code doesn't cover it all: you have to download the tool from CodePlex and explore the code to get it all.

Didn't find what you were looking for? Find more on How can we create a site variation programmatically? Or get search suggestion and latest updates.