/**
  * Add attribute to filter
  *
  * @access public
  * @param Mage_Eav_Model_Entity_Attribute_Abstract|string $attribute
  * @param array $condition
  * @param string $joinType
  * @return Ibrams_CmsExtended_Model_Resource_Cmspage_Comment_Cmspage_Collection
  * @author Ultimate Module Creator
  */
 public function addFieldToFilter($attribute, $condition = null, $joinType = 'inner')
 {
     switch ($attribute) {
         case 'ct.comment_id':
         case 'ct.created_at':
         case 'ct.status':
         case 'ct.title':
         case 'ct.name':
         case 'ct.email':
         case 'ct.comment':
         case 'ct.updated_at':
             $conditionSql = $this->_getConditionSql($attribute, $condition);
             $this->getSelect()->where($conditionSql);
             break;
         case 'stores':
             $this->setStoreFilter($condition);
             break;
         default:
             parent::addFieldToFilter($attribute, $condition, $joinType);
             break;
     }
     return $this;
 }