which calls both the breadcrumbs and the catalogue search. I have found the file breadcrumbs.phtml and form-mini.phtml (the file that contains the catalogue search) but haven’t managed to figure out how both these files are called using
<?php echo $this->getChildHtml('topBar') ?>
Can anyone help explain this please?
The reason I ask is that I want to move the search box above the top navigation while keeping the breadcrumbs where they are. Moving
You should check layout xml where that “topBar” template is define . If you will see below code
<block type="core/template" name="top.search" as="topSearch" template="catalogsearch/form.mini.phtml"/>
Remove that block part which refer to “catalogsearch/form.mini.phtml” search box, and define where you want or you can go with default.
<?php echo $this->getChildHtml('topSearch');?>
<block type="core/template" name="top.search" as="topSearch" template="catalogsearch/form.mini.phtml"/> You place this in xml where You want to display the search.
explanation: php echo $this->getChildHtml(’topSearch’); call for topSearch child.
as we have defined it using <block type="core/template" name="top.search" as="topSearch" template="catalogsearch/form.mini.phtml"/>
so it will consider this block code and map it with form/mini.phtml