[Solved] Is it possible to remove rightcolumn for a certain page?
[Solved] Is it possible to remove rightcolumn for a certain page?
Hi everybody,
I am testing a template with a rightcolumn. But on the reservation page I want this rightcolumn to be removed so that I have more room for the reservation form. Is that possible? And if so how can I do that?
Here is my testsite:
http://www.jomedio.nl/cmsmadesimple/
I am testing a template with a rightcolumn. But on the reservation page I want this rightcolumn to be removed so that I have more room for the reservation form. Is that possible? And if so how can I do that?
Here is my testsite:
http://www.jomedio.nl/cmsmadesimple/
Last edited by Anonymous on Tue Jul 22, 2008 8:00 pm, edited 1 time in total.
Re: Is it possible to remove rightcolumn for a certain page?
libralion,
the easiest would be making a copy of the template and remove it in that template. Modifying a copy of the stylesheet to justify the new space could be attached to that template.
Then create the page and attach that to the new template instead of your default template..
Ronny
the easiest would be making a copy of the template and remove it in that template. Modifying a copy of the stylesheet to justify the new space could be attached to that template.
Then create the page and attach that to the new template instead of your default template..
Ronny
Re: Is it possible to remove rightcolumn for a certain page?
There is a way to give the wrap a class of the page alias so you could use CSS to not display the right column and make the center column wider, but yes most times it's easier to just make a copy of the template and change the id of the the divs and restyle them...
Re: Is it possible to remove rightcolumn for a certain page?
Hi Ronny,
Thanks I will try that. Maybe a stupid question, but I can't find where I can attach the template to the page? I only find the option to set all pages to a template, but can't find where I can attach a template to a page?
@Mark, thanks for your input.
Thanks I will try that. Maybe a stupid question, but I can't find where I can attach the template to the page? I only find the option to set all pages to a template, but can't find where I can attach a template to a page?
@Mark, thanks for your input.
Re: Is it possible to remove rightcolumn for a certain page?
On the inserting/editing of a page, there is the template connection as well, just above the content-block....
Ronny
Ronny
Re: Is it possible to remove rightcolumn for a certain page?
Hi Ronny,RonnyK wrote: On the inserting/editing of a page, there is the template connection as well, just above the content-block....
Ronny
Yes I saw it. But you only can do that when you create a new page.
Great! I have it working now. The layout still will be a puzzle, but I know now how to do this.
Thanks!
-
christiaans
- Power Poster

- Posts: 300
- Joined: Tue Mar 04, 2008 10:37 am
Re: Is it possible to remove rightcolumn for a certain page?
Just wanted to give a shout too; there's another way around it, as follows:
Some explanation: the "if" statement checks if the page is different from the reservation page, and then renders the right column div, but if the page actually is reservation, the div is not rendered, and thus will not show up.
Code: Select all
{if $page_alias != reservation}
<div id="....
<p>Right column content</p>
</div>
{else}
<!-- Right column placeholder, there is nothing here now. -->
{/if}
Last edited by Anonymous on Tue Jul 22, 2008 8:03 pm, edited 1 time in total.
Re: Is it possible to remove rightcolumn for a certain page?
Ok that is an easy solution if it works. Where do I put that code? In the page, the stylesheet or the template?chris-s wrote: Just wanted to give a shout too; there's another way around it, as follows:
Some explanation: the "if" statement checks if the page is different from the reservation page, and then renders the right column div, but if the page actually is reservation, the div is not rendered, and thus will not show up.Code: Select all
{if $page_alias != reservation} <div id=".... <p>Right column content</p> </div> {else} <!-- Right column placeholder, there is nothing here now. --> {/if}
Re: [Solved] Is it possible to remove rightcolumn for a certain page?
On editing a page, there is also the option to select another template, or the permissions arent set for the user you are logged in with.
@chris-s,
true, I knew that one as well, but that wouldnt give space to the main div, as the stylesheet still has some space reserved, even if it isnt shown on the page....
Ronny
@chris-s,
true, I knew that one as well, but that wouldnt give space to the main div, as the stylesheet still has some space reserved, even if it isnt shown on the page....
Ronny
Re: [Solved] Is it possible to remove rightcolumn for a certain page?
Hi Ronny,RonnyK wrote: On editing a page, there is also the option to select another template, or the permissions arent set for the user you are logged in with.
@chris-s,
true, I knew that one as well, but that wouldnt give space to the main div, as the stylesheet still has some space reserved, even if it isnt shown on the page....
Ronny
Ok I finally found that feature on the editing page.
Too bad the option of Chris won't work. It was an easy solution.
-
christiaans
- Power Poster

- Posts: 300
- Joined: Tue Mar 04, 2008 10:37 am
Re: [Solved] Is it possible to remove rightcolumn for a certain page?
True about that. That is changed easily as well, as follows:RonnyK wrote: On editing a page, there is also the option to select another template, or the permissions arent set for the user you are logged in with.
@chris-s,
true, I knew that one as well, but that wouldnt give space to the main div, as the stylesheet still has some space reserved, even if it isnt shown on the page....
Ronny
Code: Select all
{if $page_alias != reservation}
<div id="middle-column-normal">
<p>Middle column content</p>
</div>
{else}
<div id="middle-column-wide">
<p>Middle column content</p>
</div>
{/if}

