November Happy Hour will be moved to Thursday December 5th.

Detect if page has been translated

Vote:
 

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:
 

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.