user can select language

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
5/17/2010 1:54:42 AM
Gravatar
Total Posts 2

user can select language

Hi I have a site where I can Language I let users provide. Like
http://www.bsquare
. http://www.heavensolutions.com/
Please help me

5/17/2010 4:33:39 AM
Gravatar
Total Posts 550

Re: user can select language

Hi,

There isn't a language selector(Combobox) in mojoPortal , like what you see in http://www.bsquare.com , but you can make add a <div> tag to you layout.master file in your  skin. Following tags make what you see at top of this site(mojoPortal.com).

<div class="langlinks">
<a title="www.mojoPortal.com Main US English Site" href="http://www.mojoportal.com" linkindex="72">
<img height="18" width="27" alt="www.mojoPortal.com Main US English Site" src="/Data/SiteImages/flags/us.gif"></a>
<a title="mojoPortal Croatian Community" href="http://hr.mojoportal.com" linkindex="73">
<img height="18" width="27" alt="mojoPortal Croatian Community" src="/Data/SiteImages/flags/hr.gif"></a>
<a title="mojoPortal Dutch Community" href="http://nl.mojoportal.com" linkindex="74">
<img height="18" width="27" alt="mojoPortal Dutch Community" src="/Data/SiteImages/flags/nl.gif"></a>
<a title="mojoPortal Spanish Community" href="http://es.mojoportal.com" linkindex="75">
<img height="18" width="27" alt="mojoPortal Spanish Community" src="/Data/SiteImages/flags/es.gif"></a>
<a title="mojoPortal Persian Community" href="http://fa.mojoportal.com" linkindex="76">
<img height="18" width="27" alt="mojoPortal Persian Community" src="/Data/SiteImages/flags/ir.gif"></a>
</div>

 

add a class like this to style.css file in your skin.

.langlinks {
position:absolute;
right:5px;
top:1px;
}

Hope Help.

Asad

5/17/2010 5:28:46 AM
Gravatar
Total Posts 18444

Re: user can select language

The bsquare site was a custom solution, the guy who built it was going to write a tutorial about how he implemented it but he never did write one as far as I know. So I'm not sure what he did but he said he did not modify any mojoportal code, only added custom code in his own files.

Probably he created a UserControl with the dropdown and put the UserControl in the layout.master file of the skin.  The dropdown does a postback and sets a cookie and then redirects to a translated page based on the language cookie.

Best,

Joe

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