Category::DM_MIXED; } /** * Check if category display mode is "Static Block Only" * For anchor category with applied filter Static Block Only mode not allowed * * @return bool */ public function isContentMode() { $category = $this->getCurrentCategory(); $res = false; if ($category->getDisplayMode()==Mage_Catalog_Model_Category::DM_PAGE) { $res = true; if ($category->getIsAnchor()) { $state = Mage::getSingleton('catalog/layer')->getState(); if ($state && $state->getFilters()) { $res = false; } } } return $res; } }