Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Detect if page has been translated

Vote:
0

Hi,

Is it possible to detect if a Page has been Translated in the CMS so I can hide the Language Toggle dropdown on the Masterpage if it hasnt been Translated.

I know there is a default fallback language but the client wants to Hide the toggle on pages that havent been translated.

Jon

#179876
Jun 23, 2017 17:15
Vote:
0

Hi Jon

You should be able to use the GetLanguageBranches method on the IContentRepository to get the ianguage branches for a piece of content:

http://world.episerver.com/documentation/Class-library/?documentId=cms/9/8334A9A3

From there you can toggle the appropriate language switcher options as appropriate.

David

#179877
Jun 23, 2017 18:40
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.