|
Sorry if this has been answered anywhere else, I have looked and I don’t think it has, if you know better please enlighten me.
We are putting together a small shop in Magento, and on the parent category page we wish to create a listing of all the categories, don’t ask why or point out the potential for this mucking up I’m well aware but client is king.
I’m not having a problem getting the listing to work or with creating a new template layout in order to achieve this however, I don’t seem to be able to define the block itself.
I have added the layout in /app/code/core/Mage/Cms/etc/config.xml using the format:
<rightcategory_column> <label>Category column on the right</label> <template>page/2columns-rightcategories.phtml</template> </rightcategory_column>
And I’ve got the parent category set to use this template and it is finding the files correctly.
Within that template I am referencing my category listing using the following:
<?=$this->getChildHtml('categorylisting')?>
And I have added the following block to the /app/design/frontend/default/layout/main.xml:
<reference name="rightcategory"> <block type="core/template" name="catalog.listing" template="catalog/category/listing.phtml" as="categorylisting" /> </reference>
But this isn’t working, any ideas? Am I being a numpty?
Thanks in advance for any help of advice given.
Sam
|