load($identifier)->getCatId()) { return false; } $pageTitle = Mage::getSingleton('blog/cat')->load($identifier)->getTitle(); $blogTitle = Mage::getStoreConfig('blog/blog/title') . " - " . $pageTitle; $action->loadLayout(); if ($storage = Mage::getSingleton('customer/session')) { $action->getLayout()->getMessagesBlock()->addMessages($storage->getMessages(true)); } $action->getLayout()->getBlock('head')->setTitle($blogTitle); $action->getLayout()->getBlock('root')->setTemplate(Mage::getStoreConfig('blog/blog/layout')); $action->renderLayout(); return true; } }