Jump to content

how to change sidebar menu items order


Recommended Posts

Hi there,

I have a hook like with a side bar construction like...       

        if (!is_null($servicesSidebar->getChild('Login to Webmail'))){
            $servicesSidebar->getChild('Login to Webmail')->setIcon('fa-ticket ls ls-user');
        }
        if (!is_null($servicesSidebar->getChild('Change Password'))){
            $servicesSidebar->getChild('Change Password')->setIcon('fa-ticket ls ls-padlock');
        }

Is there any way to know the order whmcs is using for these items and also a way to change the order on them?

Thanx in advance!

Link to comment
Share on other sites

Just now, plusplushosting said:

Is there any way to know the order whmcs is using for these items

if you had to you could get the value for a child with a hook.

4 minutes ago, plusplushosting said:

and also a way to change the order on them?

by using ->setOrder(x) where x is a number... I seem to recall the sidebar order values go up in tens, so a quick experimentation of  testing various values will move them where you want... e.g the lower the order number value, the higher in the sidebar the child should be shown.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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