title: Magento: Search CMS Page content for keyword
body: <p>I'm trying to modify a search function that currently only searches CMS page titles. I want to include a search of the page content.  Currently the function is as follows:</p>
  
  <pre><code>public function getSearchCMSPages($keyword){
      $result = array();
      $storeId    = Mage::app()-&gt;getStore()-&gt;getId();
      $cmspages = Mage::getModel('cms/page')-&gt;getCollection()
      -&gt;addFieldToFilter("is_active",1)
      -&gt;addFieldToFilter('title',array('like'=&gt;'%'. $keyword.'%'))
      -&gt;setCurPage(1)
      -&gt;setOrder('title','ASC');
      $cmspages-&gt;load();
      if(count($cmspages))
      {
          foreach($cmspages as $_page)
          {
              $result[] = $_page-&gt;getId();
          }
      }
      return $result;
  }
  </code></pre>
  
  <p>What I want to do is modify this function to also search the CMS page content for the keyword.</p>
  
  <p>Any help or suggestions on how to tackle this is greatly appreciated. </p>
  
  <p>-Eric</p>