• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 2.0 Public Navigation parameters(Callback)


Formerly Rémi C
I would like to know the same thing. Are there any examples @Chris D ?

here is an example

 public static function test(array $navData, $context, $selected)
        $params = [
            'title' => \XF::phrase('nav.test'),
            'href' => \XF::app()->router()->buildLink('test'),
            'counter' => 1,
            'icon' => 'fa-'


        return $params;

Sadik B

Well-known member
Ok question, how does $selected work. How would the new tab be selected from a custom template? Does it depend at all on the Context value when defining the navigation callback?