New modul position

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon Feb 08, 2016 10:15 am
Reply with quote
Report this post
J3.4.8 / GK Musicstate
Link: http://www.holc-naturpools.at/2016

I did the documentation about adding a new modul position. I call it "sprachposition".
Steps 1 and 2 are okay.
But I have problems adding the code to the "layouts/default.php".

Code: Select all
<?php if($this->API->modules('sprachposition')) : ?>
<div class="gkPage">
<jdoc:include type="modules" name="sprachposition"
style="<?php echo $this->module_styles['sprachposition']; ?>" />
</div>
<?php endif; ?>


I need a small postition for changing language. As you see on the screenshot the new position should be next to the logo or on the very right instead of the login. Both would be fine.

Please help to add the code correctly at the correct position in default.php.
thank you
User avatar
Junior Boarder

teitbite
Sun Feb 14, 2016 11:16 am
Reply with quote
Report this post
Hi

Edit file /layout/default.php and put this code:

Code: Select all
<?php if($this->API->modules('sprachposition')) : ?>
<div class="sprachposition">
<jdoc:include type="modules" name="sprachposition"
style="<?php echo $this->module_styles['sprachposition']; ?>" />
</div>
<?php endif; ?>


between this lines:

Code: Select all
             <div id="gkHeaderNav">                       
                <?php $this->layout->loadBlock('logo'); ?>
User avatar
Moderator

GK User
Sat Feb 20, 2016 12:46 pm
Reply with quote
Report this post
Hi,
now there is a module position - but unfortunately centered above the main menu. Using language switcher module.

1. Possible to put this position right to the logo or right to the main menu (and not above) as on screenshot?

2. The new position only shows languageswitcher with "dropdown" of text. Does not show any flags at this module position. (flags are working on positions like sidebar etc without problem). How can I use the new module postition with language switcher with flags?

thank you
User avatar
Junior Boarder

teitbite
Wed Feb 24, 2016 11:39 am
Reply with quote
Report this post
Hi

2. In module settings You can select if You wish to use flags or dropdown.

1. Try add this code to override.css

Code: Select all
.sprachposition {
    float: right;
    margin-top: 19px;
}
User avatar
Moderator

GK User
Wed Feb 24, 2016 2:40 pm
Reply with quote
Report this post
Thank you,
now the flags do work, too.
User avatar
Junior Boarder

teitbite
Sun Feb 28, 2016 12:29 pm
Reply with quote
Report this post
Hi
Glad I could help.
---
If You were satisfied with our support please let other users know on Twitter: http://twitter.com/gavickpro or Facebook: http://www.facebook.com/gavickpro
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.