Magento XML - Difference between cms_index_index and cms_index_defaultindex

When you browse the Magento file app / design / frontend / base / default / layout / cms.xml, I noticed two different handles: <cms_index_index>

and<cms_index_defaultindex>

In other stackoverflow questions, the descriptor is <cms_index_index>

used in local.xml to make changes to the Magento home page.

However, I was unable to find the handle <cms_index_defaultindex>

. What does this descriptor do, what's the difference compared to a descriptor <cms_index_index>

?

Thanks in advance.

+3


source to share


1 answer


<cms_index_index>

is your CMS home page as set in Magento Admin (system configuration).



<cms_index_defaultindex>

is the page displayed when one CMS page set as the "home page" of your Magento is not available. As you can see from the code of the Mage_Cms_IndexController class, the defaultIndexAction method is a "404 Not Found" page.

+2


source







All Articles