How to detect user type and add an item to menu?

Hello,
I was looking for an opensource school system, and your system seems perfect to use, thanls for your efforts:)
I have 2 simple questions:

  • How can I detect the user tyeps if i is student or teacher, etc…?
  • How can I add an item to the menu/submenu?
  • Thanks

Hi Hassan, welcome to the Gibbon community :smiley:

Gibbon handles users of different types by assigning them a Role, managed in User Admin. There are Student and Teacher roles in the system by default, which you can assign when creating and editing users.

Items in the menu are directly related to Modules installed in Gibbon, under System Admin > Manage Modules. You can change the top-level menus by editing the modules. To add new menu items you could install new modules (from the Extend page) or even develop your own module.

Be sure to check out the docs for more info to get started: https://docs.gibbonedu.org/administrators/

Hi,
I’m looking for a way to add a new item to the top level menu called “Quick Links” and add a couple of sub menu items under that which would all just be links to pages on our school’s website. Is there an easy way to do this without having to develop our own module?

Hi Reshi,

There is currently no way to do this, other than through a new module. However, if you check out the Info Grid module, you’ll find that this adds a tab of useful links into the Dashboard, which aims to save the same problem in a different way. Once challenge with Gibbon’s main menu is that it gets pretty full all on its own!

Cheers,

Ross

Thanks for the update Ross. I’ll see what I can do.