How to pass parameter with block form contents from cms pages in magento - magento source24

How to pass parameter with block form contents from cms pages in magento - magento source24


How to pass parameter with block form contents from cms pages in magento - magento source24


In this case I want to pass a variable with the block code : 


{{block type="core/template" my_var_name="value here" category_id="9" name="banners" alias="multibanners" template="banners/banners.phtml"}}



I'm call this parameter In ourphtml file in my case my file is banners.phtml - 


How to pass parameter with block form contents from cms pages in magento - magento source24


$my_var_name = $this->getData('my_var_name');

$category_id= $this->getData('category_id');








Deepak Kumar Bind

Success is peace of mind, which is a direct result of self-satisfaction in knowing you made the effort to become the best of which you are capable.

Post a Comment

If you liked this post please do not forget to leave a comment. Thanks

Previous Post Next Post