Magento – Magento page.xml main content block have no template file

blocksmagento-1.6template

My page.xml file is located at "/app/design/frontend/default/templatefolder/layout/page.xml" and I am able to see all the blocks pointing to particular template(".phtml"). There is a block showing a label as "Main Content Area" and having no template attribute defined in the block element. How can I get to know which phtml file is used for this particular block.

<block type="core/text_list" name="content" as="content" translate="label">
            <label>Main Content Area</label>
        </block>

Can anybody please help on how to find the template file containing the code for main content area ?

Best Answer

There is no phtml there. The content container is empty because Magento programagically fills it depending the xml/codes updates depending the url/route you are visiting.

See app/design/frontend/rwd/default/layout/catalog.xml exactly <reference name="content">

<catalog_category_default translate="label">
    <label>Catalog Category (Non-Anchor)</label>
    <reference name="left_first">
        <block type="catalog/navigation" name="catalog.leftnav" after="currency" template="catalog/navigation/left.phtml">
            <block type="core/text_list" name="catalog.leftnav.state.renderers" as="state_renderers" />
        </block>
    </reference>
    <reference name="content">
        <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
            <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
                <block type="core/text_list" name="product_list.name.after" as="name.after" />
                <block type="core/text_list" name="product_list.after" as="after" />
                <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
                    <block type="page/html_pager" name="product_list_toolbar_pager"/>
Related Topic