Magento Forum

   
Multiple Controls
 
yshahin
Jr. Member
 
Avatar
Total Posts:  30
Joined:  2008-05-14
 

Hi,

I want to create an admin page with 2 category tree’s
But the problem is that in the tree.phtml they use a static name for the <div>

<div id="tree-div" style="width:100%;overflow:auto;"></div>

so when i put 2 tree controls they collide
I want to have an incremental Id for the <div> tag but i dont know where to initialize it and where to increment it
also where to create it

I cant create it in the block because it is re-initialized for every rendering of the tree control
and i use the layout xml of my module to load the tree.phtml template

What should i do?

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