PDA

View Full Version : siteground-j15-83 - Collapse left column



nicemotion
05-02-2012, 04:36 AM
Hi all,

As per title i need to collapse the left column when there is no content in it; i already modify the templates.php file to eliminate the logo but i'm having problem editing the index.php succesfully

Can anyone help ?

Thank you in advance

Nik

nicemotion
05-02-2012, 05:05 AM
post here the piece of code for quick reference:

line 94------------

<?php if($this->countModules('left') and JRequest::getCmd('layout') != 'form') : ?>
<div id="leftcolumn">
<jdoc:include type="modules" name="left" style="rounded" />
<!-- hiide logo from left col
<?php $sg = 'banner'; include "templates.php"; ?>
-->
</div>
<?php endif; ?>

<?php if($this->countModules('left') and $this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="maincolumn">
<?php elseif($this->countModules('left') and !$this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="maincolumn_left">
<?php elseif(!$this->countModules('left') and $this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="maincolumn_right">
<?php else: ?>
<div id="maincolumn_full">
<?php endif; ?>
<div class="nopad">
<jdoc:include type="message" />
<?php if($this->params->get('showComponent')) : ?>
<jdoc:include type="component" />
<?php endif; ?>

Hristo.P
05-03-2012, 01:09 AM
I have just tested the template on a fresh Joomla installation and I can confirm that both left and right columns are hidden if there are no modules published in them. Please check the index.php file of your template and locate this piece of code:

<?php if($this->countModules('left') and JRequest::getCmd('layout') != 'form') : ?>
<div id="leftcolumn">
<jdoc:include type="modules" name="left" style="rounded" />
<?php $sg = 'banner'; include "templates.php"; ?>
</div>
<?php endif; ?>

As you can see it checks whether there are published modules in the "left" position and if so, only then generates the column div. Make sure you haven't removed or modified the check when you have tried to remove the logo from the column or any other modification.

nicemotion
05-14-2012, 03:13 AM
I have just tested the template on a fresh Joomla installation and I can confirm that both left and right columns are hidden if there are no modules published in them. Please check the index.php file of your template and locate this piece of code:

<?php if($this->countModules('left') and JRequest::getCmd('layout') != 'form') : ?>
<div id="leftcolumn">
<jdoc:include type="modules" name="left" style="rounded" />
<?php $sg = 'banner'; include "templates.php"; ?>
</div>
<?php endif; ?>

As you can see it checks whether there are published modules in the "left" position and if so, only then generates the column div. Make sure you haven't removed or modified the check when you have tried to remove the logo from the column or any other modification.

Dear Hristo,

thank you very much for your prompt reply and pls excuse my delay due to some problems here... i'll check immediately and revert.

tks again

Nik

Hristo.P
05-15-2012, 12:34 AM
Hi,

I hope it will help. If not, reply to this thread and I will have another look at it :)

nicemotion
05-20-2012, 02:40 PM
Hi,

I hope it will help. If not, reply to this thread and I will have another look at it :)

Everithing solved Hristo, there was G tramslate module interfering....

Thanks a lot for yr support ;)

602

Hristo.P
05-22-2012, 01:32 AM
Hi,

Glad I've managed to help you :) Best of luck with your website!