Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

my own block in left/right column
 
t3tob
Jr. Member
 
Total Posts:  2
Joined:  2008-02-21
 

Hello Community,

i will create my own block (example: article_search) and show this with getChildHtml(’searchArticle’). But something is not working.

Following steps I have already done.

Step1.
Define search.article in catalog.xml

<default>
....
<
reference name="search.article">
 <
block type="catalog/navigation" name="search.article" before="-" template="catalog/navigation/search_article.phtml"/>
</
reference>
....
</default>

Step2.
Set defined search.article in page.xml as searchArticle

<default>
....
<
block type="core/text_list" name="search.article" as="searchArticle"/>
....
</default>

Step3.
Place the getChildHtml for searchArticle in 3columns.phtml.

....
<
div class="col-right side-col">
 
<?=$this->getChildHtml('searchArticle')?>
</div>
....

My catalog/navigation/search_article.phtml

<div class="search_article">
    
some content ...
</
div>

What am I doing wrong oh oh

 
Magento Community Magento Community
Magento Community
Magento Community
 
t3tob
Jr. Member
 
Total Posts:  2
Joined:  2008-02-21
 

Has anyone an idea or a sample code?

Image Attachments
magento_own_script.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top