How can I add a module in the left column

GK User
Fri Apr 11, 2014 10:36 am
How do I add a module left_300 (with a specified width) in the left column of this page

.left_300 {width: 316px;}

I you trying to add:

/ layouts / blocks / left.php

Code: Select all
<?php if($this->modules('left_top + left_bottom + left_left + left_right')) : ?>
<div id="gkLeft" class="gkMain gkCol" <?php if($this->getParam("cwidth_position", '') == 'style') echo "style=width:".$gkLeft;  ?>>
    <?php if($this->modules('left_300')) : ?>
         <div id="gkLeftTop" class="gkMain">
            <jdoc:include type="modules" name="left_300" style="<?php echo $this->module_styles['left_300']; ?>" />
         </div>
         <?php endif; ?>
  <?php if($this->modules('left_top')) : ?>
 
   <div id="gkLeftTop" class="gkMain">
      <jdoc:include type="modules" name="left_top" style="<?php echo $this->module_styles['left_top']; ?>" />
   </div>
   <?php endif; ?>


But does not work: (

Thanks in advance for your help
User avatar
Fresh Boarder

GK User
Fri Apr 11, 2014 2:38 pm
Hello,

Could you visualize what do you want to achieve?
User avatar
Administrator

GK User
Fri Apr 11, 2014 3:16 pm
Hi Dziudek,

I would like to do one side of the portal left column 300px + gkContent.

Module Inset1 have been determined at 50% and use on the other side, so drops.

It needs also to a sub-page column 200px and I did it with the left column, so it falls off.



So how do independent of the settings template layout: Left column 300 px and gkContent,
  not using at the left column and column inset1
User avatar
Fresh Boarder

GK User
Fri Apr 11, 2014 3:50 pm
module_positions.jpg
User avatar
Fresh Boarder

GK User
Fri Apr 11, 2014 6:13 pm
Or how can you determine left_top on 300 px, and left1 - 200px,

Marcin
User avatar
Fresh Boarder

GK User
Fri Apr 11, 2014 10:54 pm
I don't understand the reason of your changes - you can specify the left sidebar width and left2 module position width under the "Layouts" tab in the template settings.
User avatar
Administrator

GK User
Sat Apr 12, 2014 8:49 am
I need two columns width 200px and 300px

How to configure the left column?

When the findings left column for 30% (about 300px) and then a column left2 18% (about 200px It does left2 shows how left
User avatar
Fresh Boarder

GK User
Sat Apr 12, 2014 9:29 am
Two columns but not both, on one page width 300px, for another 200 px
User avatar
Fresh Boarder

GK User
Sun Apr 13, 2014 9:10 am
If there is no module on the left1 module position then the left2 module position will be stretched to the 100% of the available space - width of the left column.
User avatar
Administrator

GK User
Mon Apr 14, 2014 2:24 pm
Yes I know, and that's why I'm asking if there is a solution.

left.php can.

Needs Left top to 300px on one page
and left1 left2 to 200px on the other side
User avatar
Fresh Boarder

GK User
Mon Apr 14, 2014 2:55 pm
If you want to achieve different widths of the columns for different subpages, then you have to create second instance of the template in the template manager, assign it to specific pages and specify the necessary dimensions.
User avatar
Administrator

GK User
Mon Apr 14, 2014 5:17 pm
Thanks for the help, also reflected on the solution, a little about the other targets.

Does the use of several templates does not affect the performance and speed of your site?
User avatar
Fresh Boarder

GK User
Tue Apr 15, 2014 4:28 pm
I didn't hear about performance impact in this case. In general template still uses the same files but with different initial configuration depending from the menu items.
User avatar
Administrator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.