Language switcher
Well-designed restaurant Joomla template with parallax effect.
- GK User
- Wed Dec 10, 2014 12:54 am
I can't find solution to put language switcher using flags in nice place on page.
First I placed it in header, but this solution puts first page header logo on all pages where lang switcher is.
I would like to place it in "Main Manu Left" to be visible any time, but I cannot find way to put something there, because template doesn't have such module position.
I can put it somewhere else and add fixed position to it, but I don't like the way it is shown on page.
Is there more elegant way to make page multilingual?
First I placed it in header, but this solution puts first page header logo on all pages where lang switcher is.
I would like to place it in "Main Manu Left" to be visible any time, but I cannot find way to put something there, because template doesn't have such module position.
I can put it somewhere else and add fixed position to it, but I don't like the way it is shown on page.
Is there more elegant way to make page multilingual?
-
- Fresh Boarder
- GK User
- Wed Dec 10, 2014 8:06 am
Hi,
start from this guide: https://www.gavick.com/documentation/jo ... -switcher/
start from this guide: https://www.gavick.com/documentation/jo ... -switcher/
-
- Platinum Boarder
- GK User
- Wed Dec 10, 2014 1:23 pm
Hi, I have the same problem. The template is very good, but not the position of the language module. I wanted to show the module in the right menu. I consulted the Help page, but it is not clear how to proceed in this case. Could you help a little?
Thank you
Thank you
Oscar E wrote:Hi,
start from this guide: https://www.gavick.com/documentation/jo ... -switcher/
-
- Junior Boarder
- GK User
- Wed Dec 10, 2014 1:43 pm
First, you have to know where you want to insert those lang flags.
Second check if there is any module position.
If not you have to add a new one, using our guide : https://www.gavick.com/documentation/jo ... -position/
If you will not be able or you don't have time for those kinds of games, you can hire one of GK moderator for such a customization job.
Second check if there is any module position.
If not you have to add a new one, using our guide : https://www.gavick.com/documentation/jo ... -position/
If you will not be able or you don't have time for those kinds of games, you can hire one of GK moderator for such a customization job.
-
- Platinum Boarder
- GK User
- Wed Dec 10, 2014 4:28 pm
Couple of hours later ....
None of above links helped me to solved this. In this template menu left, right and logo are hardcoded in layout of the page so there is no way you could add module to it.
I solved this by hardcoding another postion:
1. Go to Extensions -> Template Manager -> Gk_steakhouse Details and Files
In templateDetails.xml file after
add
Then go to layouts/default.php and after
add
Next go to Extensions -> Template Manager -> Styles -> "Name of your default style" and go to Addvanced settings tab.
Add this code to Custom CSS code.
I use flags to change language and this works for me.
It's a pity that such great templates from Gavick don't have such common thing like language switch module .....
None of above links helped me to solved this. In this template menu left, right and logo are hardcoded in layout of the page so there is no way you could add module to it.
I solved this by hardcoding another postion:
1. Go to Extensions -> Template Manager -> Gk_steakhouse Details and Files
In templateDetails.xml file after
- Code: Select all
<position>tab9</position>
<position>tab10</position>
add
- Code: Select all
<!-- Custom Module Positions -->
<position>lang</position>
Then go to layouts/default.php and after
- Code: Select all
<div id="gkMainMenuRight">
<?php
$this->mainmenu->loadMenu($this->API->get('menu_name_right','mainmenu'));
$this->mainmenu->genMenu($this->API->get('startlevel', 0), $this->API->get('endlevel',-1));
?>
add
- Code: Select all
<?php if($this->API->modules('lang')) : ?>
<div id="lang_switch">
<?php $this->layout->loadBlock('lang'); ?>
<jdoc:include type="modules" name="lang" style="none" />
</div>
<?php endif; ?>
Next go to Extensions -> Template Manager -> Styles -> "Name of your default style" and go to Addvanced settings tab.
Add this code to Custom CSS code.
- Code: Select all
#lang_switch {position:fixed;z-index:99999;top:0;}
.box li {border-bottom: none;}
@media (min-width: 1041px) {#lang_switch {right:10px;}}
@media (max-width: 1040px) {#lang_switch {left:10px;}}
I use flags to change language and this works for me.
It's a pity that such great templates from Gavick don't have such common thing like language switch module .....
-
- Fresh Boarder
- GK User
- Wed Dec 10, 2014 7:33 pm
One correction:
There is lang module in this template on the bottom of the page.
So to not have two language switchers you need to change all "lang" in code to something else. I changed it to lang_switch
There is lang module in this template on the bottom of the page.
So to not have two language switchers you need to change all "lang" in code to something else. I changed it to lang_switch
-
- Fresh Boarder
- GK User
- Wed Dec 10, 2014 8:32 pm
Default support don't include such as customization service, that's why I could send you previous link.
-
- Platinum Boarder
- GK User
- Thu Dec 11, 2014 10:30 pm
Thank you very much, this has it worked me. I was disgusted by the moderator support, I can understand your position. This template is very good. The resolution of the question improves template. Sorry for my bad English.
rpeczykowski wrote:Couple of hours later ....
None of above links helped me to solved this. In this template menu left, right and logo are hardcoded in layout of the page so there is no way you could add module to it.
I solved this by hardcoding another postion:
1. Go to Extensions -> Template Manager -> Gk_steakhouse Details and Files
In templateDetails.xml file after
- Code: Select all
<position>tab9</position>
<position>tab10</position>
add
- Code: Select all
<!-- Custom Module Positions -->
<position>lang</position>
Then go to layouts/default.php and after
- Code: Select all
<div id="gkMainMenuRight">
<?php
$this->mainmenu->loadMenu($this->API->get('menu_name_right','mainmenu'));
$this->mainmenu->genMenu($this->API->get('startlevel', 0), $this->API->get('endlevel',-1));
?>
add
- Code: Select all
<?php if($this->API->modules('lang')) : ?>
<div id="lang_switch">
<?php $this->layout->loadBlock('lang'); ?>
<jdoc:include type="modules" name="lang" style="none" />
</div>
<?php endif; ?>
Next go to Extensions -> Template Manager -> Styles -> "Name of your default style" and go to Addvanced settings tab.
Add this code to Custom CSS code.
- Code: Select all
#lang_switch {position:fixed;z-index:99999;top:0;}
.box li {border-bottom: none;}
@media (min-width: 1041px) {#lang_switch {right:10px;}}
@media (max-width: 1040px) {#lang_switch {left:10px;}}
I use flags to change language and this works for me.
It's a pity that such great templates from Gavick don't have such common thing like language switch module .....
-
- Junior Boarder
- GK User
- Fri Dec 12, 2014 11:02 am
Sorry, but the template layout is very limited, that why users have to modify it if they need extra module positions, and this is not my fault. That why we have general guides only.
-
- Platinum Boarder
- GK User
- Fri Dec 12, 2014 11:40 am
But what is more funny you can also use SLOMO plugin was based on the original loadmodule content plugin, however, it has been improved and new features have been added. One of them was you can put the tag anywhere, even directly in your template.
-
- Platinum Boarder
10 posts
• Page 1 of 1