XF 2.0 Public Navigation parameters(Callback)

XenConcept

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

here is an example

PHP:
 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?
 
Top