Tag Info

Hot answers tagged

8

I think the simplest method is to get the list using PublishingPage.VariationPageUrls. It gets a StringCollection object of URLs that point to Variation peer PublishingPage objects associated with this PublishingPage object. So in your code, it would be something like.. if (PublishingPage.IsPublishingPage(SPContext.Current.ListItem)) { ...


7

How to create Variation Labels in SharePoint 2013/Online via CSOM SharePoint 2010/2013 CSOM API does not expose any specific methods for creating Variation Labels, but you could use the following class for that purpose. VariationsClient class is intended for managing Variation Labels in SharePoint 2013. The following operations are currently supported: ...


5

You need to set correct properties while creating Variation Labels, see example for Swedish label (c#) when both Machine and Human Translations are enabled using MachineTranslationEnabled and HumanTranslationEnabled Title = "sv-SE", FlagControlDisplayName = "Svenska", Language = "sv-SE", ...


4

The logic is contained in VariationRoot.aspx which by default redirects users according to language and cookie settings by means of a custom control in the page layout (VariationRootPageLayout.aspx). You have a number of options for customising this logic if required, including replacing the custom control or adding some client-side logic using JavaScript, ...


3

MUI and Variations are 2 different concepts in SharePoint 2010! They both rely on Language packs to properly work, but the purpose is different: MUI only handles UI elements such as Menu Items, Actions Links down to Column Headers (most OOTB are automatically translated, but you need to export Resource files for your own columns) Variations handle CONTENT ...


3

The Variations mechanism is very rigid. As soon as you have very specific requirements, it's likely not to be possible (out of the box). Variations work only within an individual site collection. You can't have variation labels living outside your site collection which has the Variations set up. I would look into options that allow you to make it appear as ...


3

The supported limit is still 50 in SP 2010


3

As I understand it, XSL is server-side and JS is client-side so you are trying to mix two incompatible layers. What you can do is include a reference to a JS script within your XSL which will then run against the rendered output. In the example you mention, you could potentially render both language versions using your XSL and then hide whichever you ...


3

First a disclaimer: the below notes are a pure recollection from memory of a project I was involved back in 2008. Assuming http://mydomain.com/en/pages/introduction.aspx is your publishing master variation page. This page contains a hidden text field named "PublishingVariationGroupID". This field contains a GUID which can be used to locate all matching ...


3

I did some test and I found out that after creating variations with automatic propagation it is way too difficult to change them. If you configure variation settings with automatic variations set ti off BEFORE creating hierarchies it works.


3

Take a look to this link that explain How propagation works: http://blogs.technet.com/b/sharepoint_quick_reads/archive/2013/08/12/sharepoint-2013-variations-content-synchronization-between-source-and-target-variations.aspx Also check the timer jobs that are responsible of the propagations and the Variations log. From the link: Custom lists and ...


3

It actually depends what version of SharePoint is used. How to retrieve Variation Labels via CSOM? Since variations labels are stored in a Hidden List (MOSS 2007, SPS 2010/2013) we could retrieve it via CSOM (ECMAScript) as demonstrated below: function getVaritationLabels(OnSuccess,OnError){ var ctx = SP.ClientContext.get_current(); var rootWeb = ...


2

As a suggestion, I think that in this case you probably want to disable automatic propagation, and explicitly propagate the pages you want to be translated, rather than have everything propagated and then try to undo some of them. You have to do this with PowerShell - there is no option in the UI. $site = Get-SPSite "URLofVariationSiteCollection" $folder = ...


2

Variations will create the sites for you, you do not create the subsites for each locale manually. This blog post has extensive information around Variations and what the settings mean: http://blog.consejoinc.com/2011/01/creating-multilingual-sites-in.html Variations can be very fragile and easy to break, so it's a good idea to plan from the outset if ...


2

Yes, you're quite right that SharePoint doesn't deal particularly well with this requirement out-of-the-box. If you wish to go beyond separating authoring/reading (typically accomplished with Content Deployment) and use different branding, then the only option is to do a fair amount of custom development. In the end it comes down to using SharePoint mainly ...


2

You need to run additional timer jobs. For the root variation (in your case english), running the Variations Create Hierarchies Job Definition is sufficient to create the hierarchy. For all additional variation labels you need to start additional timer jobs. In central administration you should see these 4 timer jobs related to variations (per web ...


2

There isn't an "out-of-the-box" way to accomplish this. However, you could create your own custom Site Map Provider and in your code get the data from the Managed Metadata Service. Then you can modify the information however you need to. Here is some info to get you started: TaxonomySession (How you get the metadata): ...


2

When you create a custom list definition with a new id you loose some out of the box functionality that are coupled to a base template. Best to create a list instance with a custom schema. This way you can deploy youre customized list and keep all the functionality. Second way is to create youre definition with the same type. But thats not recommanded.


2

While creating the target label you can let SharePoint know how you want existing pages to be updated, when the changes are being done to the actual source page Users can manually sync updates from source variation pages will let end-users to choose which one to accept. Automatically update target variation pages will automatically update the target ...


1

If I remember correct, when using variation sites SharePoint sync the sites so they are identical. If something is missing in one variation site it will be removed from all variation sites. If you have webparts which should only be available for one language group, try and see if you can use audience instead.


1

What Dev vs Production means? Same AD, 2 different farms? Make sure you use same accounts in that case! Can you find the pages in the 14-hive, C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS folder?? Using variations also means that Variations-related controls have been configured -did u also copied all those?? Hope ...


1

SpContext.CurrentWeb.Language always returns languages that is used for site creation, if you would like to change languages on your site dynamically you should use `Thread.CurrentCulture.LCID'. If you would like to get this values in .aspx file, you should create module that deploys resources files to the GlobalResources folder. See this post how to do it. ...


1

If you dont want to set up a site collection at http://www.somecompany.com, You can achieve the redirection using httpmodule. The httpmodule is applied at web application level so it doesn't care if your site collection really exists. In the httpmodule, You can check for Accept-Language header using the Headers collection in the Request object : ...


1

There is a global parameter in XSLT available in SharePoint called LCID that returns locale identifier (LCID) value for System.Threading.Thread.CurrentThread.CurrentUICulture (corresponds to the default language of the website) For example: <xsl:value-of select="ddwrt:FormatDate(atom:published, $LCID, 3)"/> For details about usage of date ...


1

If you have a list which you want to use for all variations it would be better to place that at the root site instead of at the site of one of the variations. But if it's in a web part (or other control) running in the context of one of the sites in one of the variations you can use the following to find your lists. Variations.Current will give you the ...


1

It depends on how the content will be accessed, shared and distributed across different sites and site collections. I think you need to view multilingual support in a broader context before your question can be answered: When you plan for multilingual sites, consider whether you have to create content that will be shared across sites, but must be changed ...


1

I found the following link to be relevant. If an expert on the matter can confirm it would be of great help. https://sites.google.com/site/icsharepoint2010/desarrollo/sharepoint-variations#TOC-Deleting-Restoring-a-Publishing-Site


1

Fixed it by adding a new "heading" in navigation from Look and Feel --> Navigation


1

While SharePoint does provide certain multilingual features, we find that our clients require a little more flexibility and responsiveness in the multilingual user interface and content delivery as well as a simplified method to manage multilingual content and documents. PointFire provides this solution as well as providing many other useful tools for ...


1

The variation mechanism will solely copy publishing pages from the "Pages" library and no other list. There are solutions (eg on codeplex) to increase the scopes of this process but it's not the expected native behavior. You could try to refactor your process to either : locate common information at the root of your site collection and have a language ...



Only top voted, non community-wiki answers of a minimum length are eligible