Elxis CMS Forum

Support => General => Topic started by: MrEmz on August 15, 2012, 06:06:33

Title: Hide or show left and/or right column
Post by: MrEmz on August 15, 2012, 06:06:33
Greetings!  :)

How can i hide or show left and/or right column? I want to hide the right and/or left column in some of my pages. Im using okto as a default template.
Title: Re: Hide or show left and/or right column
Post by: datahell on August 15, 2012, 11:34:55
Template Okto does not have this functionality built-in. So you have to modify the template to do so. This means that you have to also modify the CSS.
Your question (BTW too generic) can not be fully answered on this this forum because it depends on many factors.
I can only provide you a clue.

You need to add an if statement on your template's index.php file.

Code: [Select]
if condition is true then
       show column
else
     dont show column

for instance dont display column on component eforum:

if ($option != 'com_eforum') {
   echo '<div>column contents here</div>';
} else {
  //nothing
}
Title: Re: Hide or show left and/or right column
Post by: webgift on August 16, 2012, 11:36:08
How many times are you going to post the same subject on Elxis Forum, MrEmz?
Please don't double the posts.
Title: Re: Hide or show left and/or right column
Post by: MrEmz on August 16, 2012, 11:53:05
Sorry my bad. It won't happen again.
Title: Re: Hide or show left and/or right column
Post by: webgift on August 16, 2012, 12:01:28
Thanks for understanding MrEmz!