0

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?

4
  • Did you gave your blocks different names? Commented Feb 18, 2013 at 13:39
  • yep, different names - different blocks
    – Sergey
    Commented Feb 18, 2013 at 13:43
  • thanks you guys. This is a stupid question, I didn't notice the name was the same :) Commented Feb 18, 2013 at 15:06
  • Posted as an answer. Commented Feb 19, 2013 at 7:40

1 Answer 1

1

Please make sure your blocks have different names.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.