The Joomla! Forum ™






Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Fri Oct 12, 2007 8:46 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Jul 12, 2007 9:49 am
Posts: 14
Location: Hungary, Budapest
Hi,

I'd like to place on my site a language selection menu without useing Joom!Fish.
- I have installed 3 languages in Joomla!
- I made 3 different menu and each menu items linked to different language specific conent.
- I prepared the index.php to change menu display depending on $mosConfig_lang. See the code below:
Code:
if($mosConfig_lang=="hungarian")  {
   if (mosCountModules('left')) { mosLoadModules( 'left', -2); }
}
if($mosConfig_lang=="english")  {
   if (mosCountModules('left_en')){ mosLoadModules( 'left_en', -2); }
}
if($mosConfig_lang=="french")  {
   if (mosCountModules('left_fr')){ mosLoadModules( 'left_fr', -2); }
}

- It is very important, that each language has different front page. The front pages are static pages too.

And this is my question: how can I make links in index.php to change languages and call the front page of the selected language?
(I know that I have two task. One is set the $mosConfig_lang variable and the other to call the specific page. But I don't know how...)

And it's important! I'd like to avoid the automatic language selection on user side. It's ought to work user interaction.

Thanx, Vite


Last edited by vite on Tue Oct 23, 2007 10:03 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Tue Mar 11, 2008 11:44 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Jul 12, 2007 9:49 am
Posts: 14
Location: Hungary, Budapest
I find the solution by myself.
Here is: http://www.stencil.hu/index.php?option=com_content&task=view&id=23&Itemid=31
In Hungarian temporarily.


Top
 Profile  
 
PostPosted: Wed May 21, 2008 1:14 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Aug 13, 2007 1:16 pm
Posts: 10
thank you Vite; i have found a lot of answers to the questions I was asking myself on your site! Very easy instructions to follow. (I like easy-to-follow instructions!)


Top
 Profile  
 
PostPosted: Sun Oct 18, 2009 2:15 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Jul 12, 2007 9:49 am
Posts: 14
Location: Hungary, Budapest
Now you can read the article here:
http://www.stencil.hu/en/how-to-make-mu ... mla-1-0-x/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 



Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group