HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

Link to categorie with "new" label

This discussion is related to the Add Menu Item addon.
piotrpiotr New
edited February 2016 in Vanilla 2.0 - 2.8

I have a category on my forum where I load load ads through an RSS feed. I have excluded this categorie from "recent discussions' because it will flood this section.
Q: would it be possible to label this menu item with "new" or a counter when the categorie it links to has new discussions ? 2.2 + Bootstrap

Comments

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    Hmmm not sure about that but will look into it and see if I can add a counter somehow to a specific link. ʼbelieve they are called notifications. Maybe I will try something like this:

    $CategoryName = $Category->Name;
    $CountNotifications = $Category->Name->CountNotifications;
    if (is_numeric($CountNotifications) && $CountNotifications > 0)
    $CategoryName .= ' <span>'.$CountNotifications.'</span>';
    
    piotr
Sign In or Register to comment.