php - Third Level Navigation in PyroCMS Navigation bar -
i having trouble making third level navigation bar in pyrocms, have not 2 levels working fine reason won't let me through {{ navigation }} array twice.
this have:
{{ navigation:links group="header" }} {{ if children }} <li class="dropdown"> <a href="{{url}}" class="dropdown-toggle" data-toggle="dropdown">{{ title }} <b class="caret"></b></a> <ul class="dropdown-menu"> {{ children }} {{ if children }} <li class="divider"></li> <li class="nav-header">{{ title }}</li> {{ children }} <li><a href="{{url}}">{{ title }}</a></li> {{ /children }} {{ else }} <li><a href="{{url}}">{{ title }}</a></li> {{ endif }} {{ /children }} </ul> </li> {{ else }} <li {{ if class == 'current' or class == 'first current' or class == 'last current' }}class="active"{{ endif }} ><a href="{{url}}">{{ title }}</a></li> {{ endif }} {{ /navigation:links }} i guessing "children" cannot looped twice, if correct way make work?
thanks!
after sometime found out can use following lex tag:
{{ *recursive children* }} but cannot customize using tag. , cannot use children within child loop.
Comments
Post a Comment