Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
EDC:
Download extensions for Elxis CMS
.
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
Re: Hide or show left and/or right column
« previous
next »
Print
Pages: [
1
]
Author
Topic: Re: Hide or show left and/or right column (Read 4139 times)
MrEmz
Jr. Member
Posts: 54
Re: Hide or show left and/or right column
«
on:
August 15, 2012, 14:11:26 »
I want to disable the left column from home page so that i can utilize the space for some items.
<?php if (currentpage != homepage) {?>
<div id="leftcolumn">
<div class="inside-col">
<div class="sidebarbox">
<?php mosLoadModules('newsflash', -2); ?>
<?php mosLoadModules('banner', -2); ?>
<div class="sidebarbox"><?php mosLoadModules('left', -2); ?></div>
<?php mosLoadModules('user3', -2); ?>
</div>
</div>
</div>
<?php
}else
?>
Is this good? How should i do the condition?
Logged
babis1
Hero Member
Posts: 1538
Re: Hide or show left and/or right column
«
Reply #1 on:
August 15, 2012, 14:39:43 »
i thing this is better
<?php if($option =='com_frontpage'){ ?>
<div id="leftcolumn">
<div class="inside-col">
<div class="sidebarbox">
<?php mosLoadModules('newsflash', -2); ?>
<?php mosLoadModules('banner', -2); ?>
<div class="sidebarbox"><?php mosLoadModules('left', -2); ?></div>
<?php mosLoadModules('user3', -2); ?>
</div>
</div>
</div>
<?php } ?>
Logged
babis1
Hero Member
Posts: 1538
Re: Hide or show left and/or right column
«
Reply #2 on:
August 15, 2012, 14:51:45 »
if you want to include statment like else then after the last </div> goes something like
}else{ something } and finished with ?>
so
<?php if($option =='com_frontpage') {
<div id="leftcolumn">
<div class="inside-col">
<div class="sidebarbox">
<?php mosLoadModules('newsflash', -2); ?>
<?php mosLoadModules('banner', -2); ?>
<div class="sidebarbox"><?php mosLoadModules('left', -2); ?></div>
<?php mosLoadModules('user3', -2); ?>
</div>
</div>
</div>
}
else{ something }
?>
«
Last Edit: August 15, 2012, 14:55:52 by babis1
»
Logged
MrEmz
Jr. Member
Posts: 54
Re: Hide or show left and/or right column
«
Reply #3 on:
August 15, 2012, 14:56:58 »
It works! Thanks! But i want to disable the left column so that the frontpage content will get the space for the left column. I only hide the column but the space is still there empty. Sorry im not clear.
Logged
babis1
Hero Member
Posts: 1538
Re: Hide or show left and/or right column
«
Reply #4 on:
August 15, 2012, 15:13:28 »
in that case you must check the whole template and the css, because somewhere have exactly values maybe before leftcolumn
Logged
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
Re: Hide or show left and/or right column