Reputation: 138
I have in the magento home content
{{block type="catalog/navigation" template="catalog/navigation/sub_navigation.phtml"}}
This is calling a set of subcategorys of the given parent category ID.
Now I want to influence my $parent_category
already from this given block. I found How to pass variable from block to phtml in magento but they don't show the same way of notation.
How to integrate the setData
action into the given block notation?
Thanks for your help!
Upvotes: 0
Views: 870
Reputation: 970
You can pass data like below mention method
{{block type="catalog/product_list" name="Custom Block" category_id="68" column_count="3" product_count="3" template="catalog/navigation/sub_navigation.phtml"}}
after that in phtml file you can get data by below mention method
$this->getCategoryId();
or $this->getData('category_id');
Thanks.
Upvotes: 4