Thursday 18 May 2006 9:15:26 am
Lets say I have an array of articles, I will make a loop and when accessing element 1 I
would like to print out the name of the first item and the name of the third item (offset from the first) something like:
item[index].name
and item[index+3].name
{section var=child loop=$list_items}
// item within the loop
{$child.name} //How to access the index?
// offset from the current item being looped
{$child.name} //How to access the index of the third [index+3] ?
{/section}
I would like to understand how to access elements from an array using somekind of indexing. Please help!
Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com
|