15 pts.
 Magento block and reference, problem with showing block in Magento phtml
Hi, I am stuck with following issue. I want show product_viewed block (recently viewed products - magento block) at specific position on my front page (templates/page/mylayout.phtml). Look at code snippets of page.xml, catalog.xml and mylayout.phtml Header and footer and other magento blocks are showing right. But problem is only with showing product_viewed block - no html code load. What I am doing wrong ? Why
<?php echo $this->getChildHtml('product_viewed') ?>
doesnt return any code ? When block hints are turned on, there is no block hint for product_viewed block (look at picture). Why ? page.xml (snippet):
<block type="page/html_header" name="header" as="header"></block>
<block type="reports/product_viewed" name="product_viewed" as="product_viewed"  template="reports/product_viewed.phtml"/>
catalog.xml (snippet):
<reference name="product_viewed">
     <block type="reports/product_viewed" name="product_viewed" template="reports/product_viewed.phtml"/>
</reference>
browser page source code of template Thanks you for any help!

Software/Hardware used:
ASKED: July 5, 2009  10:23 PM
UPDATED: January 18, 2010  9:39 AM

Answer Wiki:
I have this problem, any help ??
Last Wiki Answer Submitted:  January 18, 2010  2:22 am  by  ITDEV   30 pts.
All Answer Wiki Contributors:  ITDEV   30 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Hi i fixed it yet

I just edited magetno code, there was condition which prevented showing block

 15 pts.