Jump to content

Skin talk:Minerva Neue/Hooks/MobileMenu

Add topic
From mediawiki.org
Latest comment: 5 years ago by Knomanii in topic Is this hook outdated?

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)Reply

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)Reply

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)Reply

I think it went to Skin:Minerva when the extensions were decoupled. – Ammarpad (talk) 13:07, 25 July 2020 (UTC)Reply
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)Reply