I have a question about the file 2-columns-left.phtml
of my blog of my theme Legenda. I want edit the title of my block-blog-categories but without success.
I see that the content of block is in the
<div class="col-left sidebar col-sm-4 <?php if(Mage::app()->getFrontController()->getRequest()->getModuleName() != 'blog'): ?>col-md-3<?php endif; ?>">
<?php echo $this->getChildHtml('left') ?>
</div>
Now, where is the file that is recalled from getChildHtml('left')
? How should I do for edit the title of "Blog Categories"?
Best Answer
The block
left
is a very generic block in Magento.It is defined in the file
app/design/frontend/base/default/layout/page.xml
and is simply a block of typecore/text_list
.The basic idea is that you can simply use this block and fill it with the content you need.
You can simply reference it and add items. A perfect example of this is the customer navigation in file
app/design/frontend/base/default/layout/customer.xml
.Here Magento simply adds in child blocks into the left block. You can see exactly where content is added by searching for the following in the layout files:
You can also see when the left column is removed by search for the following in layout files:
For more information on this block I would recommend reading the Structural block blog post from Inchoo