Snippets with the tag: action

Reset / Unset all children of a block

Description

Reset / Unset all children of a block

Code

<reference name="right">
    <action method="unsetChildren"></action>
<reference name="right">

Adding a css class to body tag

Description

Adding a class via layout XML

Code

<reference name="root">
    <action method="addBodyClass"><classname>my_class_name</classname></action>
</reference>