Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
merge "Discussions"- and "Categories"-Tab to a "Forum"-Tab
Hey,
I'd like to merge the "Discussions"-Tab and the "Categories"-Tab to one single Tab called "Forum". With the Page Manager Addon I disabled the "Discussions"-Tab and renamed "Categories" to "Forum".
There is only one flaw left :(
I want the (new) "Forum"-Tab to be highlighted while I am browsing a discussion. None of the tabs are highlighted right now when browsing the discussions. The "Forum"-Tab is just highlighted when browsing the categories (like its supposed to since its just the renamed "Categories"-Tab ;) ). However, how do I get the tab highlighted when viewing a discussion?
thanks
0
This discussion has been closed.
Comments
I must admit, when I read the subject of this discussion, I immediately thought the Discussion Overview extension would solve the problem. You might want to give it a try.
<?php /* Extension Name: Change Tab Extension Url: n/a Description: Changes the current tab Version: 0.1 Author: Timothy Walters Kleinert (aka timfire) Author Url: N/A */ if ($Context->SelfUrl == 'index.php' || $Context->SelfUrl == 'comments.php' ) { function ChangeTab(&$Menu) { $Menu->CurrentTab = 'categories'; } $Context->AddToDelegate('Menu', 'PreRender', 'ChangeTab'); } ?>
(Pop the code into a file called "default.php" inside a folder, and place the folder in the "extensions/" directory, and then enable like any other extension.)