Try the Demo

Magento Forum

   
Adding cms block to search causes blank page
 
REDMobile
Member
 
Avatar
Total Posts:  42
Joined:  2008-09-15
 

I’m trying to add a simple search to CMS! I have successfully done with for the lazzymonks blog. smile

It is giving me a blank page so I did a simple test. I added
<block type="cms/page" name="test" as="test" template="cms/test.phtml" />

to layout/catalogsearch.xml

and then i created cms/test.phtml and just put ‘hello world’.

in catalog/result.phtml i put
echo $this->getChildHtml(’test’) ;

then when i goto the search results page i get a blank page and no error.

Please advise!

 Signature 

REDLIGHTBLINKING
Magento Developer - Custom Themes and Core Customization
http://www.redlightblinking.com

REDMOBILE
Magento Mobile Themes and Extensions
http://www.redlightblinking.com/store/magento-mobile-themes.html

 
Magento Community Magento Community
Magento Community
Magento Community
 
cachak
Jr. Member
 
Total Posts:  2
Joined:  2008-10-25
 

try put your <block type="cms/page" name="test" as="test" template="cms/test.phtml" /> in <reference name="content"> </reference>

 
Magento Community Magento Community
Magento Community
Magento Community
 
Mirasvit
Guru
 
Avatar
Total Posts:  645
Joined:  2009-08-22
 

In fact, Magento search is not perfect. Very often a user doesn’t find what he was looking for and leaves the store. Good decision is to integrate the Sphinx search engine. It greatly improves the quality and relevance of search results. Look at http://mirasvit.com/magento-extensions/magento-advanced-search-for-shared-hosting.html

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