Subscribe in a reader

Add to Technorati Favorites Sharepoint Nirvana | Create Variations Programmatically

Create Variations Programmatically

by Jamie McAllister 29. April 2008 15:35

There have been a few queries from people recently about whether Variations could be created programmatically. I started investigating the methods used in the Sharepoint API, but then I happened across some excellent detective work on Michiel Lankamp's Sharepoint Blog.

The method he outlines is unsupported by Microsoft, but if you have the requirement to create variations programmatically, this seems to be the only way you can achieve it at present;

http://lankamp.net/post/2007/10/Enable-variations-programmatically.aspx

He has also created a project on Codeplex that compliments his article; http://www.codeplex.com/variationsettings

Well done Michiel, you're a credit to the Sharepoint community!

 btw, you might want to create your Variations through a Feature instead of programmatically. If so, check this out; http://www.codeplex.com/variationsfeature

 

Tags: ,

About the author

Jamie McAllister Jamie McAllister is a SharePoint consultant based in Geneva, Switzerland.

Book List

      
      
      
      

    Disclaimer: The software and source code on this website is provided "AS IS"
    with no warranties of any kind. The entire risk arising out of the use or
    performance of the software and source code is with you.