Hello
I have a Smarty(.php.net) Question.
I want to create a Navigation with a Smarty Template.
How can I display an Array recursively?
Do I have to write a Plugin?
Exmp.
Array
(
[0] => Array
(
[Text] => "Item 1"
[Childs] => Array
(
[0] => Array
(
[Text] => "Item 1.1"
[Childs] => Array
(
[0] => Array
(
[Text] => "Item 1.1.1"
)
[1] => Array
(
[Text] => "Item 1.1.2"
)
)
)
[1] => Array
(
[Text] => "Item 1.2"
[Childs] => Array
(
[0] => Array
(
[Text] => "Item 1.2.1"
)
[1] => Array
(
[Text] => "Item 1.2.2"
)
)
)
)
)
[1] => Array
(
[Text] => "Item 2"
[Childs] => Array
(
[0] => Array
(
[Text] => "Item 2.1"
)
)
)
)
Something like this
-------------------
{navigation item=item from=$array}
<td>{$item.text}</td>
{/navigation}
Best Regards
Jim