Elxis CMS Forum

Support => General => Topic started by: xmanhattan on March 06, 2009, 12:47:26

Title: best way to hide right column
Post by: xmanhattan on March 06, 2009, 12:47:26
Hello all,

I have added a contact page through a wrapper but unfortunately the contact page requires the use of the right column area due to the width.

What is the best way to hide the right column in elxis templates for a wrapper page?

I am testing it using okto and openmind but if there is a general solution, that would be great.
Title: Re: best way to hide right column
Post by: nikos on March 06, 2009, 13:58:08
Hello all,

I have added a contact page through a wrapper but unfortunately the contact page requires the use of the right column area due to the width.

What is the best way to hide the right column in elxis templates for a wrapper page?

I am testing it using okto and openmind but if there is a general solution, that would be great.


Simply! Load a template with only one column (in your case left) as second one with your main template and assign it where ever you wish.

////
 
Title: Re: best way to hide right column
Post by: xmanhattan on March 06, 2009, 14:04:59
Hi Nikos,

Yes, but as I would like to make use of one of these templates, can I hide the right column using an if statement in php in the index.php of the template instead?  Maybe with an added css display: hide, as well?

Title: Re: best way to hide right column
Post by: nikos on March 06, 2009, 14:19:58
Hi Nikos,

Yes, but as I would like to make use of one of these templates, can I hide the right column using an if statement in php in the index.php of the template instead?  Maybe with an added css display: hide, as well?



I insist in previous answer i gave you and to help you more you can to the following: (personal opinion). If your main template is free you could create a copy of your main template giving another name changing it by templateDetails.xml file and then on this new one work with css files and index.php to subtract right column which you wish. Then assign this new template where ever you wish.
Title: Re: best way to hide right column
Post by: Ivan Trebješanin on March 06, 2009, 14:23:28
You can download any of my templates, they all have what you need. If you publish nothing in the right column, right cloumn won't show. Same goes for left. That's why I make free templates, so that someone can learn from it, or just to speed up his own work. Feature you described is called "colapsible columns".
Title: Re: best way to hide right column
Post by: xmanhattan on March 06, 2009, 14:57:05
Okay, thank you guys.  I will work on them.
Title: Re: best way to hide right column
Post by: Ivan Trebješanin on March 10, 2009, 03:10:18
Here, I wrote a tutorial on this subject: http://wiki.elxis.org/wiki/Collapsible_columns
Title: Re: best way to hide right column
Post by: xmanhattan on March 10, 2009, 11:50:49
Ivan,

Great idea using the wiki.  I think that it will be very useful and will help many of us with the other sections that I noticed as well.