php - Magento - Check if specific category is active -


is there way of checking if 1 specific category active? have hard coded navigation , want show or hide link depending on active status of specific category. perhaps this:

// check see if sale category active... $specificcatid = '90';     if(iscategoryactive($specificcatid)){     // specific category active, } 

i have searched high , low, , have yet close being able solve this. help, appreciated.

i hope answer question :)

$specificcatid = '90'; $category = mage::getmodel('catalog/category')->load($specificcatid);  if ($category->getisactive()) { } 

Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -