how can i add new module position in gk_finance_business tem

Professional Business Joomla template for corporate and business websites suitable for showing stock quotes, up to date news, portfolio management resources or international market data.
GK User
Wed Jun 06, 2012 12:31 pm
how can i add new module position in gk_finance_business template
because i tried to add new module position . but i did not find index.php code ,like the other index.php templates code. :(
please help me to add new module position.
or
where can i add this code .
<jdoc:include type="modules" name="mynewposition" />

i'm not PHP programer, but i have some experience in php. :blush:
User avatar
Fresh Boarder

Konrad M
Wed Jun 06, 2012 4:18 pm
Hi,
Which joomla version do you use ?
User avatar

GK User
Thu Jun 07, 2012 1:08 am
my joomla version is : 1.5.25
User avatar
Fresh Boarder

Konrad M
Thu Jun 07, 2012 12:10 pm
You can try put this code in layouts/default.php or in one of elements located in layouts/blocks folder.
Default.php is view for desktop and it contains elements located in blocks folder.
User avatar

GK User
Mon Jun 11, 2012 2:55 pm
thanx for help..

but ,the same probleme :(.
i can see the position module in the index.php/?tp=1.
but, whine i go to site administrator. Extensions => Management modules, i can't find the new module position name.


For More Info :

i add this code : <jdoc:include type="modules" name="newposition" />
to the, templates/gk_finance_business/layouts/default.php

and, this code : <position>newposition</position>
to the, templates/gk_finance_business/TemplateDetails.XML
User avatar
Fresh Boarder

GK User
Fri Jun 22, 2012 11:10 am
Hey Guys...
I know its quite an onld thread but How to really solve this thing...

I just wana add a banner just after the Logo on Financial Business Template, Or can I move and place "banner2" position next to the logo?

Iv read https://www.gavick.com/documentation/jo ... -position/ with no much luck
User avatar
Fresh Boarder

Konrad M
Fri Jun 22, 2012 12:18 pm
I added new position to my test finance_business for joomla 1.5 with no problem. What I've done:
1. I added new position to templateDetails.xml.
Code: Select all
<position>mynewposition</position>

2. I added my position to array positions located in default.php
Code: Select all
$positions = array (
   'left1'               =>'left1',
   'left2'               =>'left2',
   'left-mass-top'         =>'left_top',
   'left-mass-bottom'      =>'left_bottom',
   'right1'            =>'right1',
   'right2'            =>'right2',
   'right-mass-top'      =>'right_top',
   'right-mass-bottom'      =>'right_bottom',
   'content-mass-top'      =>'top',
   'content-mass-bottom'   =>'bottom',
   'content-top'         =>'adv_top',
   'content-bottom'      =>'adv_bottom',
   'inset1'            =>'inset1',
   'inset2'            =>'inset2',
   'mynewposition'         =>'mynewposition'
);

3. I pasted this code to default.php
Code: Select all
<?php if( $this->countModules('mynewposition') ): ?>
   <div>
       <jdoc:include type="modules" name="mynewposition" style="none" />
   </div>
   <?php endif; ?>

That's all I've done.
User avatar

GK User
Sat Jun 23, 2012 10:45 am
Thanx Konrad.
I'v managed to achieve what i rly want on a gk_quickstart demo site, and This is what aim After https://docs.google.com/file/d/0ByF0JVG ... edit?pli=1

Im trying to nest "gk_banner" div under "pageTop" like so
https://docs.google.com/file/d/0ByF0JVG ... edit?pli=1


How do i do that mate...
User avatar
Fresh Boarder

GK User
Sat Jun 23, 2012 12:57 pm
I managed to achieve just that... Working now...

Nested my Custom Code In nav.php

Code: Select all
    <!-- Custom Module Insert   -->
   <?php if( $this->modules('banner2')) : ?>
   <div id="gkBanner2" class="clear clearfix">
       <jdoc:include type="modules" name="banner2" style="<?php echo $this->module_styles['banner2']; ?>" />
   </div>
   <?php endif; ?>


just above this line

Code: Select all
<?php if((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) : ?>


kasscomplex wrote:Thanx Konrad.
I'v managed to achieve what i rly want on a gk_quickstart demo site, and This is what aim After https://docs.google.com/file/d/0ByF0JVG ... edit?pli=1

Im trying to nest "gk_banner" div under "pageTop" like so
https://docs.google.com/file/d/0ByF0JVG ... edit?pli=1


How do i do that mate...
User avatar
Fresh Boarder


cron