/ Magento

Previous Article

Check if a static block is enabled in Magento

Next Article

I've only been using Magento for a short period and I've noticed that it is extremely powerful, yet very flexible. This little snippet of code has helped me no end in my projects.

If you wish to check if a static block is enabled or disabled in your phtml files then simply use this bit of code with the identifier of your static block in place of static-block-identifier.

Mage::getModel('cms/block')->load('static-block-identifier')->getIsActive();
Avatar of Clive Walkden

Clive Walkden

Latest Articles

Linux

Output All Users Cron Jobs

If you want to check all users cron jobs this little command will output them to the command line

Magento 2

Magento 2 admin password history reset

Do you want to clear the password history on your staging test site (not recommended for live)?

Linux

How to see files changed on a certain date

As a sysadmin you often need to see which files have been modified on a certain date.