How to remove the left sidebar based on some condition written in block? I have to use the same layout xml file. Based on a condition, need to remove a block through coding. section need to be removed:
<reference name="left"> <block type="catalog/layer_view" name="catalog.leftnav" before="-" template="catalog/layer/view.phtml"/> </reference>
I tried with below code.
I didn't get any error but left sidebar still there. can anyone help me? Thanks.
I cant access controller. If i have access for controller, then i can easily do in layout rendering section. So i added my work as module and created block. Now I need to change layout / remove left sidebar.
Or is It possible to change the layout xml from block? Because i have condition statement in block. so i can choose the layout based on the condition.
Can anyone help me to fix this? Thanks