XenConcept Well-known member Aug 28, 2017 #1 What are the expected parameters? Attachments AXwzpd_ORKKNfyBbLQIB6Q.webp 12.8 KB · Views: 82
Sadik B Well-known member Mar 4, 2018 #2 I would like to know the same thing. Are there any examples @Chris D ?
XenConcept Well-known member Mar 4, 2018 #3 Sadik B said: I would like to know the same thing. Are there any examples @Chris D ? Click to expand... 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 said: I would like to know the same thing. Are there any examples @Chris D ? Click to expand... 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 Mar 4, 2018 #5 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?
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?