Public Member Functions | |
preDispatch () | |
categoryAction () | |
productAction () |
Definition at line 34 of file SitemapController.php.
categoryAction | ( | ) |
Display categories listing
Definition at line 55 of file SitemapController.php.
00056 { 00057 $update = $this->getLayout()->getUpdate(); 00058 $update->addHandle('default'); 00059 $this->addActionLayoutHandles(); 00060 if (Mage::helper('catalog/map')->getIsUseCategoryTreeMode()) { 00061 $update->addHandle(strtolower($this->getFullActionName()).'_tree'); 00062 } 00063 $this->loadLayoutUpdates(); 00064 $this->generateLayoutXml()->generateLayoutBlocks(); 00065 $this->renderLayout(); 00066 }
preDispatch | ( | ) |
Check if SEO sitemap is enabled in configuration
Reimplemented from Mage_Core_Controller_Front_Action.
Definition at line 42 of file SitemapController.php.
00042 { 00043 parent::preDispatch(); 00044 if(!Mage::getStoreConfig('catalog/seo/site_map')){ 00045 $this->_redirect('noroute'); 00046 $this->setFlag('',self::FLAG_NO_DISPATCH,true); 00047 } 00048 return $this; 00049 }
productAction | ( | ) |
Display products listing
Definition at line 72 of file SitemapController.php.
00073 { 00074 $this->loadLayout(); 00075 $this->renderLayout(); 00076 }