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

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!

 
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:  639
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