Gang,<div><br></div><div>I'm overriding the function theme_item_list() and I want to output (in addition to $classes) something like:<div><br></div><div><li class="item 1"></div><div><li class="item 2"></div>
<div><br></div><div>At first I thought that the lists I needed this for were going to be generated by Views, which would have made this task a snap because Views comes with views/theme/views-view-list.tpl.php which has row number available as a variable.</div>
<div><br></div><div>But the content is being delivered by the Related content module (<a href="http://drupal.org/project/relatedcontent">http://drupal.org/project/relatedcontent</a>) and doesn't make it's data available to Views. Are all the list items for a particular parent available as an object or an array and then a could do a "while" loop with +1 increments after each loop. I'm just kind a stuck cause I thought I had solved it by finding that Views template only to be disappointed. Note that all of the items on the relevant lists are at the same top leve... no annoying children :)</div>
<div><br></div><div>Thanks in advance for the help.</div><div><br></div><div>Shai</div></div>