topa.zip
Step 1
go to {template}/lib/framework/gk.const.php You'll see a list of modules positions.. just paste this in where you can get it to fit between a present bank of module positions.
- Code: Select all
'topa1' => 'gk_style',
'topa2' => 'gk_style',
'topa3' => 'gk_style',
'topa4' => 'gk_style',
'topa5' => 'gk_style',
'topa6' => 'gk_style',
'topa7' => 'gk_style',
'topa8' => 'gk_style',
'topa9' => 'gk_style',
'topa10' => 'gk_style',
'topa11' => 'gk_style',
'topa12' => 'gk_style',
close this file and upload.
Step 2
Open {template}/templateDetails.xml open this file and lets add:
- Code: Select all
<!-- TOPA Module Positions -->
<position>topa1</position>
<position>topa2</position>
<position>topa3</position>
<position>topa4</position>
<position>topa5</position>
<position>topa6</position>
<position>topa7</position>
<position>topa8</position>
<position>topa9</position>
<position>topa10</position>
<position>topa11</position>
<position>topa12</position>
Just add these about mid page where you see other banks of modules. this will allow you to choose the module positions within the modules.
Step 3 Take this file that I uploaded and put it in {template}/layout/blocks/ now all these modules use topa as a prefix but you can make your own names but you'll have to change all the other variables to match.
Step 4 go to {template}/layouts/ and open default.php on or about line 99 you will see
- Code: Select all
</div>
<?php endif; ?>
add right below that paste this and close
- Code: Select all
<?php $this->loadBlock('topa'); ?>
Step 5 now we need a little CSS to control the modules. if left alone the 2 modules would be at 50% each but we want 70% & 30& (or whatever you need for your application, so use this css and modify as you need
assuming your going to use topa1 and topa2
#gkTopa1 { width: 70%!important; overflow: visible; margin-bottom: 0px; }
#gkTopa2 { width: 30%!important; overflow: visible; margin-bottom: 0px; }
PROBLEMS:
If one of the modules drops below the other just change the % for either module to give it a bit more room. The topa.php is already set for header CSS, if you need the white color background just holla back.
You now have 12 new module positions that you can do as you like, you can add more or drop that number if you choose.
If you have any problems don't hesitate to message me