Magento – Show product of a category in a custom page

categorymagento-1page-layoutsproductredirect-url

I create a category with some product. Also create a custom layout for my page that I add new cms page with this layout that I created. I need to have this page with my layout because I want to add some php code just for this page. I redirect category to this page but my problem is here that products that I added to this category doesn't show in page.

Now I want to know how can I show products in this page?

Steps that I created my custom layout:

1.) I create a phtml file with 2columns-left.phtml layout and it's name is renewpage.phtml and it's address is: app/design/frontend/default/celebrity/template/page.

2.) I added it's config.xml in app/code/local/Renew/Page/etc/config.xml:

<?xml version="1.0"?>
<config>
    <modules>
        <Renew_page>
            <version>0.1.0</version>
        </Renew_page>
    </modules>
    <global>
        <page>
            <layouts>
                <renewpage translate="label">
                    <label>Renew_page</label>
                    <template>page/renewpage.phtml</template>
                    <layout_handle>Renew_page</layout_handle>
                </renewpage>
                <!-- add more layouts here -->
            </layouts>
        </page>
    </global>
</config>

3.) And add Renew_page.xml in app/etc/modules/Renew_page.xml:

<?xml version="1.0"?>
<config>
    <modules>
        <Renew_page>
            <active>true</active>
            <codePool>local</codePool>
            <depends>
                <Mage_Page />
            </depends>
        </Renew_page>
    </modules>
</config>

Best Answer

You copy app/design/frontend/default/Customtheme/template/catalog/product/list.phtml and paste it same folder app/design/frontend/default/Customtheme/template/catalog/product/rename.phtml

Then call this code in your custom page

{{block type="catalog/product_list" category_id="Your Category ID Here" template="catalog/product/rename.phtml"}}