Magento: Store front page layout; alternative to <cms_index_index>?

1.9k views Asked by At

I was wondering if there is a way to hook into the front page layout, other than

<cms_index_index>...</cms_index_index>  

Given I don't know everyhing about Magento, and the too-general looking route above, It's not too far fetched to assume that this layout is loaded at other instances other than store-front-page. I wouldn't want that.

Specifically, what I'm trying to do is to append blocks to the content block, only if It's the store front page.

1

There are 1 answers

0
Marius On BEST ANSWER

I can tell you for sure that <cms_index_index> is the layout handle used for homepage, what ever that page is.
This is not loaded for any other page unless you specify in the layout handle for that page to do so using <update handle="cms_index_index" />. I doubt this is the case for you.

An other option is to add the xml layout directly in the admin for the page you selected as homepage. The down side of this is that if you change the homepage to an other cms page you need to add the xml again.