Hide Right Column For A Specific Page

Hello,



I wanted to hide the right column for a particular category page, I was able to do that using this:


{if $right|trim && (!(($_REQUEST.dispatch == 'categories.view') && ($_REQUEST.category_id == 93)))}



This will hide category ID 93…



What is I want to do the same but for the affiliate page:



website. com/index.php?dispatch=banners_manager.manage&banner_type=G



can somebody show me the correct way to input that in the code above?

Hi Gugga, can you tell me where you put this code to hide the page , I am trying to do the same for some of my categories.



Thanks

John

Hi John,



You need to enable the “My_Changes” addon.



Create “columns.override.tpl” in skins/your_skin/customer/addons/my_changes/hooks/index



This code goes in “columns.override.tpl”:


{include file="common_templates/breadcrumbs.tpl"}
{include file="common_templates/notification.tpl"}

{block group="central"}


{if $left|trim}

{$left}

{/if}

{if $right|trim && (!(($_REQUEST.dispatch == 'categories.view') && ($_REQUEST.category_id == xx)))}

{$right}

{/if}








xx is your category id.




[quote name='johnbol1' timestamp='1309246655' post='115844']

Hi Gugga, can you tell me where you put this code to hide the page , I am trying to do the same for some of my categories.



Thanks

John

[/quote]

Great stuff…



thanks Gugga

john

[quote name='gugga7' timestamp='1309270827' post='115877']

Hi John,



You need to enable the “My_Changes” addon.



Create “columns.override.tpl” in skins/your_skin/customer/addons/my_changes/hooks/index



This code goes in “columns.override.tpl”:


{include file="common_templates/breadcrumbs.tpl"}
{include file="common_templates/notification.tpl"}

{block group="central"}


{if $left|trim}

{$left}

{/if}

{if $right|trim && (!(($_REQUEST.dispatch == 'categories.view') && ($_REQUEST.category_id == xx)))}

{$right}

{/if}








xx is your category id.

[/quote]





Hi I was unable to make this work…does it work for content pages as well as category pages?

might want to try $smarty.request.dispatch instead of $_REQUEST.dispatch.

If you want to exclude right column for more than the categories.view (controller.mode) then you would have to utilize separate if statements for each condition.