Change edit mode language from HTML

Vote:
 

Good morning,

I need to change page language when content mode is 'Edit'. 

It should works as 'Language' functionallity from header panel.

Language selector EPiServer

Is it possible to duplicate this behaviour to my application?

I use redirect to new url and it works for preview and default modes.

#133822
Sep 11, 2015 7:54
Vote:
 

I want to correct myself: redirect doesn't work in preview mode also 

#133826
Sep 11, 2015 9:37
Vote:
 

Hi,

The functionality from the screenshot is available under ContentDetails.js file.

The language link is created using code:

var url = new dojo._Url(window.top.location.href);

var contentLink = 111;

var href = [url.scheme, "://", url.authority, url.path, "?language=", item.text, "#context=epi.cms.contentdata:///", contentLink].join("");

You need to pass contentLink value.

You could also use a server method from PageEditing class

PageEditing.GetEditUrlForLanguage(contentLink, language)
#133847
Sep 11, 2015 20:46
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.