Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sitecore 8: Sharing Layout among different languages

I have a slight problem here and a doubt. I have created a page which has three components added in three different placeholders. This page was created for English version. I need this page and the components to get added in German version of the page as well.

I read a few articles that illustrate the use of layout deltas and "Final layout" feature of Sitecore 8 but got a little confused over this matter.

Article1

Also, I have checked the __Renderings setting in /sitecore/templates/System/Templates/Sections/Layout and the Shared field is checked. Still the layout is not shared.

Am i missing any settings ? Do I need to every time create both versions i.e. repeat the layout steps for German versions as well ?

All suggestions welcomed.

like image 825
Prathamesh dhanawade Avatar asked Nov 26 '15 05:11

Prathamesh dhanawade


1 Answers

If you are using Sitecore 8.0 and adding the component via the Experience Editor then you will need to add the components to each language variation of the Item, i.e. once for English and once for German. This is because the components are stored against the Final Layout field when added through the Experience Editor and the field is language specific.

The only option you have is to add the components to the Shared Layout manually by selecting the Presentation > Details from the tabs.

If you need to add the same components to all language variations at the same time then I suggest you upgrade to Sitecore 8.1 which will enable you to do that via Edit all versions option in the ribbon:

Edit All Versions


Edit: As of Sitecore 8.1 update-1, the Shared Layout can be edited using the "Layout Switcher" under the Presentation tab:

Sitecore 8.1

like image 51
jammykam Avatar answered Sep 22 '22 02:09

jammykam