Can someone tell me the path to edit the content in
<?php echo $this->getChildHtml('content') ?>
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
getChildHtml() method is a special function which will used to show html content of a child block inside a parent block. The method is defined inside the class
Mage_Core_Block_Abstract which is located at
Basically we can pass three parameters to this method. In which first one is important. The first parameter is name of a child block. In this case
content is a child block name.
content block is
core/text_list type block. This block is actually used to hold all other blocks that should come inside the content section of a page. There are other similar block does exist in Magento. Some of them are
right blocks etc. As their name indicates they holds blocks which will come under in specific place of a page. Hence we can call this blocks as
structural blocks since they actually responsible for making structure of a page.
There is only one parent block that holds these structural blocks. It is
root block. Root block is also can be treat as a
page layout container block which just act as a container block of magento page layout.
All of this definitions comes inside
However in general it is very difficult find which block stands for
In order to find
some.name block, first we need to find the template that holds this method stands for which block. Then you should find which layout xml file defines that parent block. Then you can see a child block with name
some.name inside that block there. However it is not 100% sure. The inclusion of a child block can happen anywhere.