OK Here is how I solved the problem. Moderators will say if all is correct
First as I wrote in my previous post in the template (template->layout->default.php) there is already a position lang , which can be used for placing the language switcher module. So you have two options :
1. to create a new module position , for example: languages, as
teitbite describerd:
Please edit file /layout/default.php and add this code in line 75, righ before the code for login module.
- Code: Select all
<?php if($this->API->modules('languages')) : ?>
<jdoc:include type="modules" name="lang" style="raw" />
<?php endif; ?>
And after that to style it with css ( will show you later how)
2. the other option is to open again in templates->layout/default.php and to serach for the module position "lang" at around line 190
- Code: Select all
<?php if($this->API->modules('lang')) : ?>
<div id="gkLang" class="gkPage">
<jdoc:include type="modules" name="lang" style="<?php echo $this->module_styles['lang']; ?>" />
</div>
<?php endif; ?>
You can comment or delete this code.
It will looks like:
- Code: Select all
<?php $this->layout->loadBlock('footer'); ?>
<!--<?php if($this->API->modules('lang')) : ?>
<div id="gkLang" class="gkPage">
<jdoc:include type="modules" name="lang" style="<?php echo $this->module_styles['lang']; ?>" />
</div>
<?php endif; ?>-->
After that on the same file after the line 75 moved the lang position (nothing new from the option 1), right after the login module.
- Code: Select all
<!--My Language position-->
<?php if($this->API->modules('lang')) : ?>
<div id="gkLang">
<jdoc:include type="modules" name="lang" style="<?php echo $this->module_styles['lang']; ?>" />
</div>
As you see from the copied code from the bottom , that we removed the class="gkPage" as we don't needed it here. Save the default.php file, and you will see that you already have your lang position on the top (left) of the template. Now let us style it a little. Add the next css code in your template.css file
- Code: Select all
#gkLang {
float: right;
padding-top: 25px;
}
After that you will see that the language switcher is on the right side of the main menu.
Hope this will help, and let me now if I did something which is not correct