[eluser]jdfwarrior[/eluser]
I think I already know the answer to this question, but I figured I'd check anyway. Is it possible to use the template engine to display items from a multi level array.
For instance:
Code:
{blog_entries}
<h5>{title}</h5>
<p>{body}</p>
{/blog_entries}
Would read an array like:
Code:
'blog_entries' => array(
array('title' => 'Title 1', 'body' => 'Body 1'),
array('title' => 'Title 2', 'body' => 'Body 2'),
array('title' => 'Title 3', 'body' => 'Body 3'),
array('title' => 'Title 4', 'body' => 'Body 4'),
array('title' => 'Title 5', 'body' => 'Body 5')
)
But can you take it any deeper? Would like to continue using the template parser to keep the views extremely clean. I'm trying to add Navigation menu that would contain an array of categories (main menu, contacts, etc), then each one of those would have a list of items that would contain an array of items found in that section, and then each one of those would have an array of info associated with them.
Is that possible or am I going to just throw a foreach in?