Magento Forum

How category_id works from back end to front end? 
 
Archonkulis
Jr. Member
 
Total Posts:  4
Joined:  2012-10-14
 

Hi all.
Im developing some extension and i have a problem understanding, how works category_id field.
I have a block and this block should display category’s with specific id’s.
E.g

{{block type="lalala" category_id="5"}}
How does he finds category with id = 5? What’s the process?
Thanks smile
 
Magento Community Magento Community
Magento Community
Magento Community
 
BelVG
Guru
 
Avatar
Total Posts:  306
Joined:  2011-02-16
Minsk, Belarus
 

{{block type="catalog/product_list" name="product_listing" template="catalog/product/list.phtml" category_id="8"}}

source: app/code/core/Mage/Core/Model/Email/Template/Filter.php
method: blockDirective($construction)

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top