Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Elxis documentation
for users and developers.
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
Hide or show left and/or right column
« previous
next »
Print
Pages: [
1
]
Author
Topic: Hide or show left and/or right column (Read 4220 times)
MrEmz
Jr. Member
Posts: 54
Hide or show left and/or right column
«
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.
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: Hide or show left and/or right column
«
Reply #1 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
}
«
Last Edit: August 15, 2012, 11:38:11 by datahell
»
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
webgift
Elxis Team
Hero Member
Posts: 4193
Re: Hide or show left and/or right column
«
Reply #2 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.
Logged
Elxis Team •
Custom web design [EN]
-
[EL]
•
.GR Registrar
MrEmz
Jr. Member
Posts: 54
Re: Hide or show left and/or right column
«
Reply #3 on:
August 16, 2012, 11:53:05 »
Sorry my bad. It won't happen again.
Logged
webgift
Elxis Team
Hero Member
Posts: 4193
Re: Hide or show left and/or right column
«
Reply #4 on:
August 16, 2012, 12:01:28 »
Thanks for understanding MrEmz!
Logged
Elxis Team •
Custom web design [EN]
-
[EL]
•
.GR Registrar
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
Hide or show left and/or right column