-
- CrashTest

-
Total Posts: 43
Joined: 2007-09-12
Boise, ID
|
Ok, so I have successfully integrated the display of the currently selected items category for display on the bottom of the product view, by simply adding the following to my custom layout xml file:
<catalog_product_view> <!-- Mage_Catalog --> <reference name="root"> <action method="setTemplate"><template>page/1column.phtml</template></action> </reference> <reference name="content"> <block type="catalog/product_list" name="product_list"></block> </reference> </catalog_product_view>
This works great, perfectly in fact, however when I try to pull up a product view from my advanced search (I haven’t tried simple search, don’t have it activated) it of course produces an error, because there is no catalog/product list.
Is there a way to insert some logic along the way (in other words, where would I do this) to test to see if this is a search result or a catalog display, and then display the correct thing?
Thanks,
Pat
|