I've injected custom variable named slider_id to my block like below,
<reference name="content">
<block type="sliderpro/sliderpro" name="defaultslider" as="defaultslider" before="-" template="sliderpro/defaultslider.phtml" >
<action method="setData"><name>slider_id</name><value>1</value></action>
</block>
<block type="sliderpro/sliderpro" name="defaultslider" as="defaultslider" before="-" template="sliderpro/defaultslider.phtml" >
<action method="setData"><name>slider_id</name><value>3</value></action>
</block>
</reference>
Under defaultslider.phtml,
echo $this->getSliderID(); // Outputs 3
I need to grab both the requested slider_id's i,e 1 & 3.
Any idea how to achieve this ?