Stefan Goßner

Senior Escalation Engineer for SharePoint (WSS, SPS, MOSS, SP2010) and MCMS

SharePoint Variations – The complete Guide – Part 1 – The Basics

SharePoint Variations – The complete Guide – Part 1 – The Basics

  • Comments 10
  • Likes

Today I will start a new article series, which will discuss all aspects of the SharePoint Variations feature.

The article series will provide insights into the underlying architecture and will also provide details about customization.

But before we can start with the internals we first have to start with the basics.

 

The idea behind

SharePoint Variations has been implemented to address the following common scenarios:

Multilingual sites

Many companies operate globally, and even in their home market, companies often must appeal to customers who speak different languages. This diversity often requires that publishing sites be tailored for different cultures, markets, and geographic regions. 

Multiple Devices

In addition, the importance of new internet connected devices like mobile phones, PDAs and internet enabled media players becomes more and more important - so presenting the same information in a different layout on different target devices is mandatory for many customers. 

Coordinating Content Creation and Update

Maintaining a number of different versions, or "variations," of publishing sites or pages is difficult and time consuming because it can be difficult to coordinate the creation and updating of content between the variations. 

Accuracy of Content

Another important factor is the accuracy of the content in the different languages, which requires the integration with individual workflows, and an export and import functionality of the content for the purpose of translation through external companies.

 

Understanding Variations

[The terms used in this paragraph are explained in the Terminology section below]

SharePoint Variations allows copying sites and content from the source variation label to one or more target variation labels. By default, the variations feature copies only the site structure and publishing pages from the Pages library of the source variation label.

The variations feature does not copy other site content, such as lists or other document libraries, unlike the content deployment feature, which copies all content, including lists and other document libraries, from one site to another.

It is possible to configure the variation feature to copy resources like images and documents bound to publishing pages also to target variation sites - but this will only work for documents and images which reside in libraries and folders which also exist in the target site with the same site relative Url.

Another important difference between the variation feature and content deployment is that the copied content in the target variation labels can be changed, unlike the content deployment feature, for which changing copied content on the target is discouraged.

By default, when users navigate to the Variation Root Site, they are redirected to the appropriate top site of a variation label, based on the language setting of their Web browser. For example, if a user's default browser language is French, SharePoint Server 2010 redirects that user to the top site of the French variation label.

It is possible to customize this behavior by replacing or updating the redirection page responsible for the routing with a different page. This new page can implement custom logic to redirect the user based on other criteria (e.g. information from the User-Agent string).

We will discuss the details about how to achieve this in a later chapter. 

 

Terminology

The Variation Feature allows tailoring publishing sites for different cultures, markets, languages, devices or any other criteria defined by a customer.

Variation settings enable site owners to create and maintain a number of different "variations," of the same publishing sites or pages. 

Variation Hierarchy

Exactly one variation hierarchy can be defined per site collection. It consists of a Variation Root - and sub trees for each of the "variations" which we refer to as variation labels. 

Variation Root Site

Each site collection can have a maximum of one hierarchical structure, which supports variations. Each variation label defines the top site of a sub-tree of this hierarchy. The site, which contains the different site structures (e.g. one structure for English and one for German) of the different variation labels, is the variation root site.

As only one hierarchical structure supporting variations can exist in a site collection it also means that there can only be one variation root per site collection.

The variation root site contains the landing page that contains the logic, which redirects users to the correct label (more details in a later chapter).

The variation root site can be a site at any level in a site collection, including the top-level site. It is not possible to change the variation root site after the variation hierarchy has been created. 

Variation Labels

Variation labels are the names given to each of the variants. For example, variant labels could be language names - such as English, French, or German - or devices - such as PDA, mobile phone, Internet Explorer - or a combination of both like Spanish mobile phone, English Internet Explorer etc.

The flexibility is endless as the Variation system allows customers to define a custom routing logic to decide to which label to redirect a user who browses the site (more details in a later chapter).

Up to 50 variation labels are supported in a site collection.

There are two different types of variation labels:

  • Source Variation Label 
    The source variation label holds the sites where content is authored, published, and later pushed to the target labels. There can be only one source variation label per variation hierarchy. After a source variation label has been defined and its hierarchy has been created, it cannot be changed. 
     
  • Target Variation Label
    The target variation labels receive most or all of their content from the source variation label. Although new content can be created on a target label, that content is not shared with other labels and is unique to the label in which it was created. 

Variation Top Site

The Variation Top site is the root or upper most site in a variation label. All Variation Top sites in a hierarchy are direct children of the Variation Root site and define the root of the hierarchy within a variation label. 

Variation Pages

Variation pages are the publishing pages that are stored in the Pages library of the source variation sites and the target variation sites. These pages and any dependent resources such as images and documents are the only content that is copied from the source label to the target labels.

 

Important: Storing non-publishing pages inside the Pages library of a site is unsupported! Non-publishing pages inside the Pages library of a site in the source label can cause the Variations Create Hierarchies Job Definition timer job to fail.

 

Page Variants

These are the peer pages bound together by the variation feature. Each variation label can contain one variant of a page in the source label. If the item in the source label is updated the content of the source page is automatically populated to the page variants in the target labels. 

Variation Group

Each source site or page defines a separate variation group. All variants of the site or page in the different labels belong to the same Variation Group. 

Relationships List

The variation system needs to keep track about peer sites and pages to ensure that updates performed in the source label are correctly transferred to the target label.

This tracking information is stored in the Relationships List. Each page or site in the variation hierarchy is represented in the relationships list as a separate list item: the Relationships List Entry.

We will discuss the Relationships List in more detail in a later chapter.

Figure 1: Variation Hierarchy

Comments
  • Is this same for 2013 ?

  • ""There can be only one source variation label per variation hierarchy.
    Exactly one variation hierarchy can be defined per site collection.""
    and then it says
    ""Up to 50 variation labels are supported in a site collection.""

  • Hi Umar,
    the info is correct: one source variation label and 49 target variation labels.

  • In 2013 there are 209 variation labels supported.

  • Hi Stefan,

    I was told that for SP2013 language pack must be installed co-related to the variation label language you plan to use, otherwise you might have some unexpected behavior like display template customstrings.js localization folder missing error on content search etc.

    have you encounter this problem before?

  • Hi Eric,

    you can only choose languages for which a language pack has been installed.
    So this can only happen if you have multiple servers in a farm and on one server you forgot to install the language pack.

    Cheers,
    Stefan

  • how can i activate variatins in collaboratif site ?

  • Hi Asmae,

    variations only works for sites where the publishing feature is enabled and only for publishing pages and associated items.

    Cheers,
    Stefan

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
Raw Html Fix