Module position for built in main menu

Support desk for Multipurpose Quark Theme
GK User
Sun May 17, 2015 5:10 pm
Hi Gavick,

currently I am working on a new website (Url is dev and closed) based on quark. As there is no module position possible
with your template built in main menu in classic style I am running into problems:

I want to use the header position for Logo (in centered position)
top1 should be used for horizontal Main Menu Navigation (gavern menu, classic style)
top2 is for Bannerslide
breadcrumbs is for horizontal second subnavigation (gavern menu, classic style), if possible (conflict in mobile view?),
otherwise its the same modul from top1 with different menu levels
Then comes content in normal articles.

But how do I connect a Navigation Module in top1 and breadcrumbs position with the menu which
is built in in the template? I am not sure if your GK Extra Menu Extension might fit for that?
Kind regards
Ron
User avatar
Fresh Boarder

GK User
Mon May 18, 2015 6:52 am
I would suggest to add some extra module positions just for this purpose.
https://www.gavick.com/documentation/jo ... e-position
User avatar
Moderator

GK User
Mon May 18, 2015 12:38 pm
Cyberek, thanks for your help. Your solution looks like the right way.
I checked the instruction and two questions are left: Which part of the header do I have to use in my new module position in default.php? I only need the classic navigation functionality with mobile view. And which style is set: "none" or somekind of "gk#"? And can I use it although Menu is set off in template backend configuration. Regards, Ron

Cut out header part from /templates/gk_quark/layouts/default.php, complete file is attached:

<header id="gkHeader" class="gk-clearfix">
<div id="gkHeaderNav" class="gk-clearfix<?php if($this->API->get('menu_fixed', 0) == '1' && $this->API->get('menu_type', 'off-canvas') === 'classic') : ?> gk-fixed<?php endif; ?><?php if($this->API->modules('cart')) : ?> contains-cart<?php endif; ?>">
<?php if($this->API->get('menu_fixed', 0) == '1') : ?>
<div>
<?php endif; ?>

<?php $this->layout->loadBlock('logo'); ?>

<?php if($this->API->get('menu_type', 'off-canvas') === 'classic') : ?>
<?php
$this->mainmenu->loadMenu($this->API->get('menu_name','mainmenu'));
$this->mainmenu->genMenu($this->API->get('startlevel', 0), $this->API->get('endlevel',-1));
?>
<?php endif; ?>

<?php if($this->API->get('show_menu', 1)) : ?>
<div id="gkMobileMenu" class="gkPage<?php if($this->API->get('menu_type', 'off-canvas') === 'off-canvas') : ?> off-canvas<?php endif; ?>">
<span id="gk-mobile-menu-text"><?php echo JText::_('TPL_GK_LANG_MENU'); ?></span>
<i id="static-aside-menu-toggler"></i>
</div>
<?php endif; ?>

<?php if($this->API->modules('cart')) : ?>
<div id="gk-cart-btn"<?php if(!$this->API->modules('header')) : ?> class="no-header-image"<?php endif; ?>>
<i class="gkicon-cart"></i>
</div>

<?php $this->layout->loadBlock('cart'); ?>
<?php endif; ?>

<?php if($this->API->get('menu_fixed', 0) == '1') : ?>
</div>
<?php endif; ?>
</div>

<?php if($this->API->modules('header') && $item_id != $error_item_id) : ?>
<div id="gkHeaderMod" class="gk-clearfix">
<jdoc:include type="modules" name="header" style="none" />
</div>
<?php endif; ?>
</header>
User avatar
Fresh Boarder

GK User
Fri May 22, 2015 6:49 pm
I'm having issues understanding whats your issue.
One important thing is we don't support big template makeovers, cutting out functionalities etc.
User avatar
Moderator


cron