Magento – Get Category Display Mode

category

How can I programmatically get the Category "Display Mode" if it have a "Products only", "Static block only" or "Static block and products" ?

Thanks for help.

Best Answer

$cateoryId = 16;
$category = Mage::getModel('catalog/category')
    ->setStoreId(Mage::app()->getStore()->getId())
    ->load($categoryId);

$displayMode = $category->getDisplayMode();
//do something with $displayMode
Related Topic