![]() ![]() You have to try it and fix what’s to big to fit on screen. This however, is tricky, and I won’t cover it this time. To make it available, you either have to provide a link to it on your portal’s homepage, or to add a new tab to the Dokeos navigation header. This is all very well, but the problem is that this page isn’t referenced anywhere (no link to it), so users won’t be able to get there after they log-in and click another link. Once this is inserted, and if we select this option in the administration panel, the page will appear when anyone logs in. INSERT INTO settings_options (variable, value, display_text) VALUES (‘page_after_login’,’my_homepage.php’,’Custom homepage’) This can be done by adding a row to the settings_options table: Second, let’s add this page as a choice in the portal administration panel. Let’s change some text in there to show that we are actually viewing the new page when we log in. We want to add one.įirst let’s make a copy of user_portal.php and call it “my_homepage.php”. This can be done through the very useful configuration variable “page_after_login”, which you can select in Portal administration -> Dokeos configuration settings -> Platform, but which only offers two possibilities by default: “Portal homepage” and “My courses”. The idea is that we don’t want to get rid of user_portal.php, because it serves us well, but we would like to add a page to which the user will be directed when he logs in. This is also a littlebit less tricky than it sounds (although some improvements might be *very* tricky to add). Different portal homepage for logged-in users That’s it for a left menu (you might get alignment problems in some cases, but I leave the little details for you to fix following your taste). It is fixed in 1.8.6, but if you want to fix it in 1.8.5, just edit main/inc/tool_navigation_ and remove the “style” attribute from the declaration of the element with id=”swap_menu_link”. See the #swap_menu_link over there? Well, there is a small missing feature in Dokeos 1.8.5, whereby the swap_menu_link item has a style hard-coded in a script. * - course navigation menu as a definition list - */ ![]() Note IE/Mac doesn’t like this method ~ it wants the 100% so it canīe fed in using IE only CSS below becasue IE/Win also works with the 100% method. * this needs to be less than 100% for Moz/Mac which thinks Now this *should* have moved the menu to the left (if not, take a look at the following code, this should do it). Comment the first part, uncomment the second, save and reload. Look for “#toolnav” and the following commented code. OK, so we want this menu on the left instead… Lucky us, there is already a bunch of CSS directives to move this menu from right to left inside the main/css/public_admin/default.css style. Hoooo, a nice menu has appeared on the right. Go to Portal administration -> Dokeos configuration settings -> Course, and look for the option “Display course navigation menu”. Nevertheless, in the context of this first challenge (left tools menu), it’s more easily explained with Public Admin. It is recommended to use a style based on “Public Admin” to do that, as this is now the default for Dokeos, it is up-to-date and it works well with the feature we’re about to use.Īlthough we are basing this on the “Public Admin” style, it is important to note that it would be smart to actually start from “Dokeos Classic” instead, as this style is better suited for 800×600 display (Public Admin is, in fact, more suited for 1024×768 or larger). There is a set of options in the administration panel that allow us to show a floating menu of short links to tools. This is not as tricky as it sounds (although it’s very close to it). This must all work on a 800×600 screen (which is a real challenge). The idea is to have a left bar showing large tools icons in the course homepage, and have an alternative portal homepage for users, showing an introductory screen of the main general tools. Today, in the context of an indirect contract with the Ministry of Education in Peru, I have to change the style a little bit more. A few weeks ago, I explained how to change the Dokeos footer to make it “float”. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |