• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 2.0 Are Alert Bubbles still a thing in the navbar?

Chris D

XenForo developer
Staff member
#4
You would usually add it programmatically to the nav entry using the navigation_setup event using the counter value as described above.
 

Jaxel

Well-known member
#5
You would usually add it programmatically to the nav entry using the navigation_setup event using the counter value as described above.
Of course. But I'm trying to do it manually first, just to make sure it works.

Any examples of a navigation setup event?
 

Jaxel

Well-known member
#6
I got it... thanks.

Code:
<?php

namespace EWR\Rio\Listener;

class Navigation
{
    public static function setup(\XF\Pub\App $app, array &$navigationFlat, array &$navigationTree)
    {
        $navigationTree['EWRrio']['counter'] = 2;
    }
}