bkrztuk wrote:This part is hard coded to the template but you can add your custom position there, tutorial how to add new module position you will find on our forum and the file that you need to modify is :
-template/layouts/default.php in line 96, where you can see the 'lang' position,
- Code: Select all
<?php if($this->modules('lang')) : ?>
You can add new one right after 'lang' or use this language switcher position for your content.
Hi, I still have a problem with this.
In line 95 and 96 in default.php I have this:
- Code: Select all
[line 95] <?php if(GK_REGISTER) : ?>
[line 96] <a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&view=registration" id="btnRegister"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>
I found this tutorial:
https://www.gavick.com/documentation/jo ... -position/In file templateDetails.xml i added a new position: <position>ikony</position>
and in file gk.const.php I added 'ikony' => 'none',
after this I added such code to default php
- Code: Select all
<?php if($this->modules(‘ikony’)) : ?>
<div>
<jdoc:include type=”modules” name=”ikony” style=”<?php echo $this->module_styles['ikony']; ?>” />
</div>
latter I made a new module "ikonki" with my own html, I found position "ikony" and publish it with no positive resault.
Please, check is eveything is correct. The all code in default.php is:
- Code: Select all
<?php if(((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) || $this->modules('pagetop + cart')) : ?>
<div id="gkPageTopFeatures" class="clearfix gkWrap">
<?php if($this->modules('pagetop')) : ?>
<div id="gkPageTopMod">
<jdoc:include type="modules" name="pagetop" style="<?php echo $this->module_styles['pagetop']; ?>" />
</div>
<?php endif; ?>
<?php if(((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) || $this->modules('cart')) : ?>
<div id="gkPageTopLinks">
<?php if($this->modules('cart')) : ?>
<a href="#" id="btnCart"><?php echo JText::_('TPL_GK_LANG_MY_CART'); ?><span><?php echo JText::_('TPL_GK_LANG_MY_CART_LOADING'); ?></span></a>
<?php endif; ?>
<?php if(GK_LOGIN) : ?>
<a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&view=login" id="btnLogin"><?php echo $btn_login_text; ?></a>
<?php endif; ?>
<?php if(GK_REGISTER) : ?>
<a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&view=registration" id="btnRegister"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>
<?php endif; ?>
<?php if($this->modules(‘ikony’)) : ?>
<div>
<jdoc:include type=”modules” name=”ikony” style=”<?php echo $this->module_styles['ikony']; ?>” />
</div>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
<?php endif; ?>