Skin talk:Minerva Neue/Hooks/MobileMenu
Add topicAppearance
Latest comment: 5 years ago by Knomanii in topic Is this hook outdated?
| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
Complete example
[edit]Can someone in the know post a complete example, how to add some extra main menu items for the MobileFrontend.
In my case, we run a wiki separate from our main site.
The wiki main menu has the item 'return to main site' which is a link to our main portal entry point.
That works fine in desktop view, but now I need it to exist also under Mobile Frontend with Minerva skin.
Aloist (talk) 19:32, 4 February 2019 (UTC)
- see Extension talk:MobileFrontend/2017#h-MODIFY_THE_MAIN_MENU-2017-01-04T02:24:00.000Z 31.168.97.178 (talk) 14:23, 22 March 2020 (UTC)
Is this hook outdated?
[edit]MobileMenuHook.php seems to no longer exist.
Is this hook still compatible with the latest MobileFrontend?
I'm assuming it no longer exists since I could find no references to the file. Knomanii (talk) 07:35, 25 July 2020 (UTC)
- I think it went to Skin:Minerva when the extensions were decoupled. – Ammarpad (talk) 13:07, 25 July 2020 (UTC)
- Thanks @Ammarpad! I do see references to
Hooks::run( 'MobileMenu', [ 'discovery', &$group ] );in Minerva Neue, I'll try to see if I can use the hook to customize menu links. Knomanii (talk) 18:57, 25 July 2020 (UTC)