I am unable to find the setIsHandle method ie defined inside action tag in page.xml under the node page_one_column.

<action method="setIsHandle"><applied>1</applied></action>

And what is purpose of using this ?

Comments state that it "Mark root page block that template is applied"


There is no method setIsHandle.
It's a magic setter. It's equivalent to ->setData('is_handle', 1).

The value set by this, is later retrieved using getIsHandle that is equivalent with ->getData('is_handle') in the Mage_Page_Helper_Layout::applyTemplate method.

  • You do not give time to answer the question.... :).. More faster than me :)
    – Amit Bera
    Aug 28 '15 at 11:45
  • cool thanks much @marius , where it is used ? I mean purpose Aug 28 '15 at 11:55
  • 1
    I'm not 100% sure, but it's something related to the layout of the root block.
    – Marius
    Aug 28 '15 at 11:58
  • By setting is_handle to 1 before the method Marius mentioned is executed you can avoid that a page layout is applied. Page layout in this context means something like the design tabs for CMS pages, categories or products. Dec 2 '15 at 12:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.