Switching between different languages

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
4/16/2012 1:40:31 AM
Nik
Gravatar
Total Posts 36
mojoportal.net.ua - Russian community of mojoportal

Switching between different languages

Good day.

Maybe this problem discussed in this forum but I can't find it.

I have two different sites with two different languages (www.site.com and  www.site.com/en) They have same content and same page's name. ( www.site.com/123.aspx = www.site.com/en/123.aspx).

I want  to add links to head both sites  which switching between different languages. How can I do it ?

  

4/17/2012 11:21:13 AM
Nik
Gravatar
Total Posts 36
mojoportal.net.ua - Russian community of mojoportal

Re: Switching between different languages

Nobody can answer the question? Is it a very hard or the question is stupid?

4/17/2012 11:38:31 AM
Gravatar
Total Posts 18439

Re: Switching between different languages

You could put links to the other sites (home page) in the layout.master page of the skin for each site, often people use flag icons for such links. However there is nothing in mojoPortal that will link to the same page in a different site, we make no assumptions that different sites will have the same pages or the same urls. If you need something to do that you could make a custom control and embed it in your layout.master file and your custom control would have to have the logic to determine the urls to link to based on your conventions.

Hope that helps,

Joe

4/17/2012 1:08:18 PM
Nik
Gravatar
Total Posts 36
mojoportal.net.ua - Russian community of mojoportal

Re: Switching between different languages

Thanks for your answer.

I understand that I must add link to layout.master page of the skin for each site. But how do I generate correct links?
I need combinated links:
-"www.site.com/en/"+ name of the current page
-"www.site.com/"+name of the current page

May be mojo has something operators, which have the same function.
Or maybe somebody created this function.

You must sign in to post in the forums. This thread is closed to new posts.