Magento – page/1column.phtml VS

layoutmagento-1.9theme

<update handle="page_one_column" />

These both set the template to 1page. Is there any reason to use one over the other?

<reference name="root">
  <action method="setTemplate"><template>page/1column.phtml</template></action>
</reference>

I have noticed that both of these seem to have the same effect (making the page use the 1column.phtml template) but I'm sure there are subtle differences that only a Magento expert would know about. Is there any reason to use one over the other? I like the flexibility of using the update handle, but it seems like it could have unintended repercussions.

The first question that comes to mind is: does the page_one_column handle override the page_two_columns_left handle that is already there? Could this cause the page to have both handles?

Edit[Clarification]: I understand that <page_one_column> is a layout handle, and it can be "applied" by calling <update handle="page_one_column" />. What I don't understand (and want to know) is if this can cause any negative side-effects. I myself can't think of any edge cases where this might break something, but it seems like they could exist. I can't really know for sure without digging deep into the code and trying to break stuff.

Best Answer

To understand the purpose of <update handle="some_name"> you can look at following magento file:

/app/design/frontend/base/default/layout/catalog_msrp.xml

you can create your own handle

<my_handle_blabla>
    <!-- some layout -->
</my_handle_blabla>

Then you can add your handle anywhere <update handle="my_handle_blabla" /> It's like echo $property