Magento Forum

   
Get the Search into the Category view. 
 
schmelzgeist
Sr. Member
 
Total Posts:  92
Joined:  2008-05-27
Marzipane World Capital (Lübeck, Germany)
 

Due to a Design Template i have to position the Search within the ‘content’ block like here(sorry for not using linebreaks, but this imac, does not like it :( ... ):

<reference name="content"
            <
block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
                <
block type="core/template" name="main.search" as="mainSearch" template="catalogsearch/form.mini.phtml"/>
                 <
block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
                    <
block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
                        
[-- omitted---]
                    
</block>
                    <
action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
                </
block>
            </
block>
        </
reference>
as you can see, i want it to be nested within the view.phtml . i use code like this:
<?php endif; ?>
    
<h2><?php echo $this->htmlEscape($this->getCurrentCategory()->getName()) ?> &nbsp;></h2>
    </
div>
    
<?php echo $this->getCmsBlockHtml() ?>
    <?php $this
->getChildHtml('mainSearch'?>

but i don’t see it in the page . caches are disabled, but it is only there when it is not nested. but i need the nested version.  what am i doing wrong? hmmm

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top