2014-06-27

Determine page type in magento

For category page (in layout xml file):

 
  
   category
  
 

And in your block class you can get value of page type:
$this->setPageType()
For other pages you can do the same - just replace catalog_category_view with your action.

No comments:

Post a Comment