add new module position in memovie

GK User
Wed Mar 21, 2012 1:43 pm
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>
User avatar
Junior Boarder

GK User
Wed Mar 21, 2012 3:46 pm
All looks good , did you created a new module in module manager , set the position to "uol" and enabled it as well as assigned the module to show on that page.

Let us know.
User avatar
Platinum Boarder

GK User
Thu Mar 22, 2012 9:26 pm
Hello normanUK. Thanks for the reply.
I created a new module and pointed it to the new position "uol" which appears on module manager but nothing happened.

Do you have any idea to solve the problem?
User avatar
Junior Boarder

GK User
Thu Mar 22, 2012 9:35 pm
Last thing you can check is edit module settings and look at bottom left for menu assignments. Choose Show all to display module in all pages of your website so we can see if your mod is working.

Let us know, see you around...
User avatar
Platinum Boarder

GK User
Sun Mar 25, 2012 11:27 pm
Hello, I solved the problem by editing the default file again. The code has been placed after the information "Wrap1."

I have another problem.

I can not edit the background color of the position "banner1"
User avatar
Junior Boarder

GK User
Tue Mar 27, 2012 3:56 am
You can use following css code.
example black background #000
Code: Select all
#gkBanner1 { background: #000!important; }


See you around.
User avatar
Platinum Boarder


cron