Hello,
I'm having trouble adding a new module position.
The new position appears when creating a new module but nothing happens on the site. I do not see the position on the sitemap
I have put a new position at the top of the page.
This is the link of the current page. (http://www.baloodesign.com.br/clictv/)
The new position should look like. (http://www.baloodesign.com.br/clictv/images/module.jpg)
I've read the link
https://www.gavick.com/documentation/jo ... -position/
The modifications that were added:
- File templateDetails.xml
<!-- Template specific Module Positions -->
<position>uol</position> (line added)
<position>search</position>
<position>breadcrumb</position>
<position>footer_nav</position>
<position>banner1</position>
<position>banner2</position>
<position>login</position>
- File gk.const.php
// definitions of module positions default styles
$GK_TEMPLATE_MODULE_STYLES = array(
'uol' => 'gk_style', (line added)
'search' => 'none',
'banner1' => 'none',
'banner2' => 'none',
'breadcrumb' => 'none',
- File nav.php
<?php elseif($this->getParam('logo_type', 'image')=='image') : ?>
<h1 id="gkLogo">
<a href="./">
<img src="<?php echo $logo_image; ?>" alt="<?php echo $this->getPageName(); ?>" />
</a>
</h1>
<?php endif; ?>
<?php endif; ?>
<?php if($this->modules(‘uol’)) : ?>
<div>
<jdoc:include type=”modules” name=”uol” style=”<?php echo $this->module_styles['uol']; ?>” />
</div>
<?php endif; ?> (line added)
<?php if( $this->modules('search') ): ?>
<div id="gkSearch">
<jdoc:include type="modules" name="search" style="<?php echo $this->module_styles['search']; ?>" />
</div>
<?php endif; ?>
</div>
<?php if($this->getParam('show_menu', 1)) : ?>
<div id="gkMenu">
<?php
$this->menu->loadMenu($this->getParam('menu_name','mainmenu'));
$this->menu->genMenu($this->getParam('startlevel', 0), $this->getParam('endlevel',-1));
?>
</div>