Jump to content

Child Dropdown in addon


jgshier

Recommended Posts

I have an addon I created with a hook to add child. Which works when I'm on a the home page, the Store shows a drop down and Account shows a drop down. But if I click my addon, it goes to the page just fine. But once the page loads I can see each menu has a drop down option with arrow, but none work. I don't see any errors in the whmcs activity log. Is there away to fix?

add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar)
{
    $primaryNavbar->addChild('My Lists')
        ->setOrder(70);
    $primaryNavbar->getChild('My Lists')
        ->addChild('Channel List', array(
            'label' => 'List 1',
            'uri' => 'index.php?m=list1',
            'order' => '1',
        ));
    $primaryNavbar->getChild('My Lists')
        ->addChild('List 2', array(
            'label' => 'List 2',
            'uri' => 'index.php?m=list2',
            'order' => '2',
        ));

});

Link to comment
Share on other sites

Why do my posts have to be approved? Anyway in digging i have this included at the top of my tpl file.

<script src="https://netdna.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>

Which seems to be the cause. Can I not include this js ?

Link to comment
Share on other sites

16 hours ago, jgshier said:

Why do my posts have to be approved? Anyway in digging i have this included at the top of my tpl file.


<script src="https://netdna.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>

Which seems to be the cause. Can I not include this js ?

WHMCS already has this file included, you don't need to include it again

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated