-
AuthorPosts
-
November 28, 2010 at 11:59 pm #156868
Hello,
I’d like to be able to switch languages via a menu link, for example:Home | About us | Russian
when the user clics on Russian, the site changes to russian and the menu would look like this:
Home | About us | English
If the user now clics on ‘english’ the site would go back to english and the menu would look like the first one.
I tried to put a language selector to the same position as menu, but for some reason, I don’t have this position in a drop-down list – maybe it’s a specific of the template that I use?
Also, I tried to create a menu item with a link like that:
http://www.prazdnik.ca/index.php?lang=ru
but Joomla adds item id at the end of the link – “&Itemid=73” and I get “page not found” error!How can I accomplish this task, please?
gray Friendgray
- Join date:
- October 2009
- Posts:
- 957
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 28
- Thanked:
- 292 times in 230 posts
November 29, 2010 at 12:07 am #364594In JoomFish language selector is accomplished as a module. If you look at the code of mod_jflanguageselection you’ll see it’s not just a link. It involves trigging of the JF code and class. So, I’d recommend you to keep language selector as module and place it somewhere near the main menu.
November 29, 2010 at 4:45 am #364630The point is – I can’t place it anywhere near the menu in this template!
There is no JA Menu position in the module’s position selector!?It is beacause I could not place it near the menu, I decided to make it look like a menu item…
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
November 29, 2010 at 8:38 am #364651Now, you open the file: templates/ja_quazt/index.php and find the following code:
<!-- END: MAIN NAVIGATION -->
replace:
<!-- END: MAIN NAVIGATION -->
<div class="ja-topleft">fdfd
<jdoc:include type="modules" name="topleft" />
</div>
and the following into the template.css file
.ja-topleft{
position:absolute;
top:0px;
right:10px;
}
When done, the template has a new position, it is “topleft”, you put the joomfish module on there
December 1, 2010 at 3:16 am #364915I found another solution already:
Created menu item “Russian”, like that:
Home | About us | Russianwith a link:
http://www.prazdnik.ca/index.php?lang=ru
it is importat to use SEF URLs – this way you don’t get item ID at the end of the url…Then, using Joomfish, translated menu item into “English” and the link into “http://www.prazdnik.ca/index.php?lang=en”
-
AuthorPosts
This topic contains 5 replies, has 3 voices, and was last updated by sloger 13 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum