Hi, I have this array:
Code:
[nav:footer] => Array
(
[0] => Array
(
[name] => home
[link] =>
[children] => Array
(
[0] => Array
(
[name] => child1
[link] => link1
)
[1] => Array
(
[name] => child2
[link] => link2
)
)
)
[1] => Array
(
[name] => Contact
[link] => contact.php
[children] =>
)
)
And my view is:
PHP Code:
{{nav:footer}}
<h1>{{name}}</h1>
<h2>{{link}}</h2>
{{children}}
<h3>{{name}}</h3>
<h4>{{link}}</h4>
{{/children}}
{{/nav:footer}}
And this results in:
Code:
home
{{children}}
home
{{/children}}
Contact
contact.php
{{children}}
Contact
contact.php
{{/children}}
The children are obviously not parsed.
Is there a way to achieve this (and even deeper) without having to use php?