Add "select dropdown" item to the main admin navigation, possible?

Recommended Posts

Looking for suggestions on how to insert a dropdown menu next to the admin navigation (Pages, Setup, Modules, Access, DropdownMenu), with uikit3 will be something like this one

5aa5c4ded78f3_ScreenShot2018-03-12at1_07_10AM.png.0062b5bfeed3f73d4a0b304959c38d68.png  5aa5c4e9b25bb_ScreenShot2018-03-12at1_07_24AM.png.f8737de1dbba307ba5e098681e4d5f2f.png

I see how to hook and modify the module page title and the breadcrumb

$this->addHookBefore('Process::execute', function (HookEvent $event) {
    $process = $event->object;
    $event->wire('processHeadline', 'customTitle');
    $event->wire('processBrowserTitle', 'customTitle');

but not sure how to hook the main navigation to add new item. I see this executeNavJson in the Hooks methods, but doesn't return enything

$this->addHookBefore('Process::executeNavJSON', function (HookEvent $event) {
    $process = $event->object; //  @var Process $process
    bd($process); // Tracy is not even thrown 

Did I miss any docs for this?

Share this post

Link to post
Share on other sites

well after many attempts, I've found that this working solution

doesn't work for the Uikit Admin theme, as the latter has no helper file (yet, whereas all others admin theme have). pity!

Share this post

Link to post
Share on other sites

At the moment the only way to achieve this in the Uikit Admin Theme is via javascript route, as described by Lahijani in this thread


  • Like 2

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.