Its been a long time since my last question here. So, I have created a new module position as the documentation said.
The codes:
templateDetails.xml
- Code: Select all
<!-- Template specific Module Positions -->
<position>banner1</position>
<position>banner2</position>
<position>breadcrumb</position>
<position>cart</position>
<position>footer_nav</position>
<position>header</position>
<position>login</position>
<position>pagetop</position>
<position>register</position>
<position>submenu</position>
<position>usermenu</position>
<position>search</position>
<position>MYMODULE</position>
gk.const.php
- Code: Select all
$GK_TEMPLATE_MODULE_STYLES = array(
'banner1' => 'none',
'banner2' => 'none',
'pagetop' => 'none',
'header' => 'none',
'cart' => 'none',
'login' => 'none',
'register' => 'none',
'breadcrumb' => 'none',
'footer_nav' => 'none',
'submenu' => 'none',
'usermenu' => 'none',
'search' => 'none',
'top' => 'gk_style',
'MYMODULE' => 'gk_style',
'bottom' => 'gk_style',
'banner3' => 'none',
'inset1' => 'gk_style',
'inset2' => 'gk_style',
'mainbody' => 'gk_style',
'mainbody_top' => 'gk_style',
'mainbody_bottom' => 'gk_style',
default.php
- Code: Select all
<div id="gkPage">
<div id="gkPageWrap" class="gkMain gkWrap">
<div id="mainContent" class="clear">
<?php if($this->modules('breadcrumb') || $this->getToolsOverride()) : ?>
<div id="gkBreadcrumb">
<div>
<?php if($this->modules('breadcrumb')) : ?>
<jdoc:include type="modules" name="breadcrumb" style="<?php echo $this->module_styles['breadcrumb']; ?>" />
<?php endif; ?>
<?php if($this->getToolsOverride()) : ?>
<?php $this->loadBlock('tools/tools'); ?>
<?php endif; ?>
</div>
</div>
<?php if($this->modules('MYMODULE')) : ?>
<jdoc:include type="modules" name="MYMODULE" style="<?php echo $this->module_styles['MYMODULE']; ?>" />
</div>
<?php endif; ?>
<?php endif; ?>
<?php $this->messages('message-position-2'); ?>
<?php $this->loadBlock('top'); ?>
<?php $this->loadBlock('main'); ?>
<?php $this->loadBlock('user'); ?>
<?php $this->loadBlock('bottom1'); ?>
</div>
</div>
</div>
My intention is to utilize a module position juts below the 'top' position (left_top, top, right_top). I want it to be a one long block.
Thanks for the help, please help me ASAP.
Link: qzhu.sitemakers.hu
Gabor