load($identifier)->getcatId()) { return false; } $page_title = Mage::getSingleton('blog/cat')->load($identifier)->getTitle(); $blog_title = Mage::getStoreConfig('blog/blog/title') . " - "; $action->loadLayout(); if ($storage = Mage::getSingleton('customer/session')) { $action->getLayout()->getMessagesBlock()->addMessages($storage->getMessages(true)); } $action->getLayout()->getBlock('head')->setTitle($page_title); /* if (Mage::getStoreConfig('blog/rss/enable')) { Mage::helper('blog')->addRss($action->getLayout()->getBlock('head'), Mage::getUrl(Mage::getStoreConfig('blog/blog/route') . "/cat/" .$identifier) . "rss"); } */ $action->getLayout()->getBlock('root')->setTemplate(Mage::getStoreConfig('blog/blog/layout')); $action->renderLayout(); return true; } }