Wednesday 7 January 2015

Magento: Home Page condition

<?  $action = Mage::app()->getFrontController()->getAction()->getFullActionName();

if($action=='cms_index_index'){

    echo "Here Your custom code";

?>

 

<!-- or here you can write your custom code -->

    <?php echo $this->getChildHtml('breadcrumbs')  ?>

<?php  }  ?>

8 comments:

  1. Great Read! I am impressed on how you make you article easy to understand. I'll come back for more :D

    Japs Buidon is a Social Media Specialist and SEO from a renowned Magento Development Company in Florida. He loves hiking as well as electronics.

    ReplyDelete
    Replies
    1. Many many Thanks Andie... for read my blog and write comment.

      Delete
  2. This is a very nice blog, really impressed for that. Thank you for this kind of posts, keep updating.
    fire opal online

    ReplyDelete
  3. This post is very easy to understand and very well maintained. Thanks for posting and keep us update.
    mycophenolate capsules

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. Thanks for your blog. Your blog is superb for understating anything for Magento.

    Please follow and share this blog.

    And Please subscribe this channel for latest and interesting news:

    https://www.youtube.com/channel/UC4UOkjvyYZ50qCrBdQiyQKw

    http://newscircle.in

    ReplyDelete