Question

I have one block on the page :

<block type="obishomeaddon/customcategory" name="customcategory"   template="homeaddon/customcategory.phtml">
    <action method="setData"> <name>column_count</name> <value>4</value> </action>
    <action method="setData"> <name>category_id</name> <value>213</value> </action>
</block>

Now, I want to have two of these blocks but different category_id. The problem I have is Magento will loop through the XML first, so the last category_id will be set and all the blocks will have the same category_id

Which is a good way to solve this problem?

Was it helpful?

Solution

Please make sure your blocks have different names.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top