Magento - check if static block is enabled

/ Published in: PHP
Save to your folder(s)

A way to check if a static block is enabled/disabled in the backend.

Copy this code and paste it in your HTML
  1. Mage::getModel('cms/block')->load('static_block_identifier')->getIsActive()

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.