DCSIMG
January 2009 - Posts - Gady Elkarif's Blog

Gady Elkarif's Blog

January 2009 - Posts

SharePoint Site Variations

SharePoint Site Variations

The variations feature in Office SharePoint Server 2007 helps creating multilingual site hierarchy, which makes content available by copying content from the source variation site to each target variation site in the hierarchy.

After installing the Hebrew Language Pack, I want to create site variation hierarchy with two sites:

  • English site (Source)
  • Hebrew site (Target)

Use the following steps to create SharePoint site variations:

  • Create New Web Application
  • Create Site Variation
  • Create Variation Labels

Create New Web Application

In the SharePoint Central Administration page, select Application Management, and then select “Create or extend Web application” link.

SharePoint: Create or Extend Web Application SharePoint: Create New Web Application

In the Create or Extend Web Application page, enter the user name and password, and click OK.

SharePoint: Create New Web Application

In the Application Created page press on Create Site Collection link.

SharePoint: Application Created

In the Create Site Collection, select title, URL and site template. Provide also user name and press OK.

SharePoint: Create Site Collection 

Verify your site collection was successfully created in the following URL:

http://myhost:port/sites/MySiteCollection

SharePoint: Site Collection

Create Site Variation

Press on “Set up multilingual support” link to create variation home. Type slash (‘/’) to indicate the top-level Web site of the site collection and press OK.

To go to variation in the menu, go to Modify All site settings, and then select variations.

SharePoint: Modify All Site Settings

Create Variation Labels

A variation label is an identifier that is used to name and configure a new variation site in the variation hierarchy. You can select only one variation label as the source, which represents the main site where content enters the system. The corresponding variation labels are the target labels, representing the sites to which content is copied.

Select variation label, set label name, display name, site template language and locale for both the English site and the Hebrew site.

In addition, for the English site, creates it as the source hierarchy.

SharePoint: Create Variation Label SharePoint: Create Hebrew Variation Label

Press on “Create Hierarchies” operation and go to the site collection home page, this is the result I get:

SharePoint: Site Variation

Check the Result

If you put in the browser the following URL: http://myhost:port/sites/MySiteCollection

You will redirected to the appropriate variation (English / Hebrew) according to the definition of the default language preferences in your browser:

Language Preferences 

If you add and publish a new page in the English site, it will duplicated to the other sites in the hierarchy.

Technorati Tags:

Book Review: RESTful PHP Web Services

Book Review: RESTful PHP Web Services

RESTful PHP Web Services by Samisa Abeysinghe.

The book is full of great information about REST with PHP, and assumes you have a working knowledge of PHP. It starts with introducing the principles behind REST, what is REST web services, why use it, and some REST tools and frameworks in PHP.

You will study on some real-world REST applications, designing and implementing a resource-oriented client and service in detail and much more.

The book is short (200 pages), and has some identications problems in code samples, but I have no problem with that.

The book contains a lots of examples in PHP, and I think more explanations on the sameples could help in some places. 

Conclusion

I would recommend this book for beginners PHP developer as it is a good introduction to PHP web services using REST style. Also for experienced PHP programmers who interesting in REST.

Enjoy!