Hello,
Is there an easy way to add a scientific calculator (with graph tracer) to the student tools or a Menu....?
Best regards.
wadmiraal
mar 28/01/2014 - 09:17
Hi adon.
Hi adon.
You can add entries to the left menu since Opigno 1.3. If you updated from Opigno 1.2 or earlier, make sure to first go to "Administration > Appearance > Manage display settings". Scroll to the bottom of the page and choose "Main Menu" as the menu source. Hit save.
Now, if you go to `admin/structure/menu/manage/main-menu`, you can add new items (and reorder them). Mind you, though, that the icons are added through CSS. This is on purpose: it allows people to use other themes without forcing them to use icons in the menu (some users prefer a simple, text menu).
Your new entries will appear as white squares. To add your own icons, first create them (you can look into `profiles/opigno_lms/themes/platon/img` to see how the other icons are made), then use FTP to load them to your server (e.g.: in `sites/default/files`). Next. make sure to give a CSS ID to your custom menu entries (look at the other ones for inspiration). Finally, use a module like [CSS Injector](https://drupal.org/project/css_injector) to add the following CSS snippet to your pages:
#my-custom-id a {
background-image: url(/path/to/my/inactive-icon.png);
}
#my-custom-id a:hover,
#my-custom-id a.active {
background-image: url(/path/to/my/active-icon.png);
}
Now your entries will have a custom icon. Without hacking the Opigno source code.
Hi adon.