XF 2.2 Navigation in a widget

JoyFreak

Well-known member
I'm trying to put the navigation into a widget by adding the following:
Code:
                    <xf:foreach loop="$navTree" key="$navSection" value="$navEntry" i="$i" if="{{ $navSection != $xf.app.defaultNavigationId }}">
                        <li>
                            <xf:macro name="nav_entry"
                                arg-navId="{$navSection}"
                                arg-nav="{$navEntry}"
                                arg-selected="{{ $navSection == $pageSection }}"
                                arg-shortcut="{$i}" />
                        </li>
                    </xf:foreach>

It's not working. Any idea why?
 
Back
Top Bottom