Jaxel Well-known member Dec 6, 2017 #1 In my addon's admin navigation tree, I want to add a link to the addon's option group. However, clicking that link changes the navigation point on the sidebar from my addon's tree, to the setup tree. (as is expected) Would it be possible to somehow change this?
In my addon's admin navigation tree, I want to add a link to the addon's option group. However, clicking that link changes the navigation point on the sidebar from my addon's tree, to the setup tree. (as is expected) Would it be possible to somehow change this?
Nulumia Well-known member Apr 13, 2020 #2 I know this is an old post but here's a decent workaround. Make your admin page with: PHP: public function actionIndex() { $group = $this->em()->find('XF:OptionGroup', 'yourOptionsGroupName'); $viewParams = [ 'group' => $group, ]; return $this->view('YourAddon:PageName', 'some_container_template', $viewParams); } Setup a simple admin route. Then your template will just act as a container for the options: Code: <xf:title>{{ phrase('your_options_page_title') }}</xf:title> <xf:description>{{ phrase('your_options_page_description') }}</xf:description> <xf:macro template="option_macros" name="option_form_block" arg-group="{$group}" arg-options="{$group.Options}" /> This effectively allows you to have a whole side menu panel of nav links that stay highlighted while actually showing option groups. Last edited: Apr 13, 2020
I know this is an old post but here's a decent workaround. Make your admin page with: PHP: public function actionIndex() { $group = $this->em()->find('XF:OptionGroup', 'yourOptionsGroupName'); $viewParams = [ 'group' => $group, ]; return $this->view('YourAddon:PageName', 'some_container_template', $viewParams); } Setup a simple admin route. Then your template will just act as a container for the options: Code: <xf:title>{{ phrase('your_options_page_title') }}</xf:title> <xf:description>{{ phrase('your_options_page_description') }}</xf:description> <xf:macro template="option_macros" name="option_form_block" arg-group="{$group}" arg-options="{$group.Options}" /> This effectively allows you to have a whole side menu panel of nav links that stay highlighted while actually showing option groups.