modify the bannertop module postion or.....

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sun Dec 01, 2013 1:18 pm
Reply with quote
Report this post
hi there,

is there a way to modify the bannertop module postion or perhaps create a new one beside it? What i would like is the following:

at the top of the page i want to display 2 different ads at the same time, so i can create a second module and place it in bannertop position aswell but then it displays underneath the other module, i want them next to each other (with a bit of spacing offcourse). so is there a way to modify the existing modulepostion bannertop to display 2 modules next to each other? or perhaps how can i create a new module position next to bannertop position? see image to clearify it a bit.

thnx for reading!

Image
User avatar
Fresh Boarder

GK User
Mon Dec 02, 2013 10:11 am
Reply with quote
Report this post
Probably it is only CSS issue, please publish banner on this new position and give me your site URL. I'll try to prepare custom CSS code for you which you should paste to override.css file.
User avatar
Platinum Boarder

GK User
Mon Dec 02, 2013 12:16 pm
Reply with quote
Report this post
I dont have the new module position, but i wish to make one. I have a module set ready on module position "bannertop1" and want to display it next to the "bannertop" position...

Site url to check: www.westlandersonline.nl

Thnx for looking it up, appriciate it!
User avatar
Fresh Boarder

GK User
Tue Dec 03, 2013 9:50 am
Reply with quote
Report this post
How to add new module position you will find here How to add a new module position ?

When you add the position on the correct place, please publish some module there so I'll be able to help you with CSS.
User avatar
Platinum Boarder

GK User
Tue Dec 03, 2013 9:33 pm
Reply with quote
Report this post
So i followed every step on that tutorial on making a new module position but cant get it to work.

i wanted to test if the new module actually showed up if i insert the code. so at the gk_news\layouts\default.php file i found the existing bannertop position and placed my new module onderneath it like below:
Code: Select all
    <?php if($this->API->modules('bannertop')) : ?>
    <section id="gkBannerTop">
       <div class="gkPage">
         <jdoc:include type="modules" name="bannertop" style="<?php echo $this->module_styles['bannertop']; ?>" />
       </div>
    </section>
    <?php endif; ?>
   
   <?php if($this->modules('bannertop1')) : ?> <div class="newstyle">

<jdoc:include type="modules" name="bannertop1"

style="<?php echo $this->module_styles['bannertop1']; ?>" />

</div> <?php endif; ?>
   
   <?php if($this->API->modules('topmenu')) : ?>
   <section id="gkContentTop" class="gkPage">
      <?php if($this->API->modules('topmenu')) : ?>
      <div id="gkTopMenu">
         <jdoc:include type="modules" name="topmenu" style="<?php echo $this->module_styles['topmenu']; ?>" />
      </div>
      <?php endif; ?>


as u can see in the middle is my new module called bannertop1
but when i do it like this i get the following error:

Fatal error: Call to undefined method GKTemplate::modules() in .................../templates/gk_news/layouts/default.php on line 116

so i ajusted the code to this:
Code: Select all
   <?php if($this->API->modules('bannertop1')) : ?> <div class="newstyle">

<jdoc:include type="modules" name="bannertop1"

style="<?php echo $this->module_styles['bannertop1']; ?>" />

</div> <?php endif; ?>


but nothing happends and no module will show up. what am i doing wrong?

to clearify i want the new BANNERTOP1 module position on the right side of BANNERTOP position (like on the image showed in my first post)

any help on this one? i'm missing something?

thnx
User avatar
Fresh Boarder

GK User
Wed Dec 04, 2013 11:45 am
Reply with quote
Report this post
You should use :

Code: Select all
$this->API->modules('bannertop1')


instead of :

[url]$this->modules('bannertop1')[/url]
User avatar
Platinum Boarder

GK User
Wed Dec 04, 2013 12:26 pm
Reply with quote
Report this post
Ok! Its working now... The module is showing up at the new module position "bannertop1".... Only its showing up underneath the bannertop position. I would like to show it next to each other (bannertop,left/bannertop1,right). Can u help me with that? Below is the code i use at the moment...

Code: Select all
    <?php if($this->API->modules('bannertop1')) : ?>
    <section id="gkBannerTop">
       <div class="gkPage">
         <jdoc:include type="modules" name="bannertop" style="<?php echo $this->module_styles['bannertop']; ?>" />
       </div>
    </section>
    <?php endif; ?>

   <?php if($this->API->modules('bannertop')) : ?>
    <section id="gkBannerTop">
       <div class="gkPage">
         <jdoc:include type="modules" name="bannertop" style="<?php echo $this->module_styles['bannertop']; ?>" />
       </div>
    </section>
    <?php endif; ?>


Your help is very appriciated!
User avatar
Fresh Boarder

GK User
Thu Dec 05, 2013 2:22 pm
Reply with quote
Report this post
oke, i researched a little deeper and found what i wanted to achieve was simple to make with assigning a new suffix to the modules :O
so i ajusted a existing suffix and used that one.

.bigtitle {
float:left;
width:50% !important;
}

assigned both moduels i wanted to display on top with that suffix bigtitle and i was done ><

thnx for helping me out ;)
User avatar
Fresh Boarder

GK User
Sat Dec 07, 2013 1:50 pm
Reply with quote
Report this post
So problem is resolved, yes ?
User avatar
Platinum Boarder

GK User
Sat Dec 07, 2013 2:02 pm
Reply with quote
Report this post
Yes problem solved and topic closed! Thnx team gavick
User avatar
Fresh Boarder


cron