Search on Knowledge Base
How can i set placeholder at custom position
Sep 17, 2015 by Peter D.

Banners and placeholder can be also used as follows:

With Standard Magento widgets

{{block type="easybanner/banner" banner_name="name"}} 
{{block type="easybanner/placeholder" placeholder_name="name"}}

With PHP code


<?php $this->getLayout()->createBlock('easybanner/banner')->setBannerName('name')->toHtml(); ?> 
<?php $this->getLayout()->createBlock('easybanner/placeholder')->setPlaceholderName('name')->toHtml(); ?>

With XML code


<reference name="content"> 
  <block type="easybanner/banner" name="unique_banner_name"> 
    <action method="setBannerName"><name>test</name></action> 
  </block> 
   <block type="easybanner/placeholder" name="unique_placeholder_name">
     <action method="setPlaceholderName"><name>right-top</name></action> 
  </block> 
</reference>

Get Discount!

Get your personal discount !

Like us on Facebook, post a Tweet or rate us at Google Plus to get instant 10% OFF on any purchase from our store.

Please make your choice
Discount Coupon Code

Back to top