Note: You are currently viewing documentation for Moodle 2.0. Up-to-date documentation for the latest stable version is available here: Integrating Face-to-face sessions on the course page.

Integrating Face-to-face sessions on the course page

From MoodleDocs
Revision as of 22:45, 26 February 2008 by Francois Marier (talk | contribs) (Add one of IRD's images)

To display the session dates directly on the course page, add the following code to the print_section() function in course/lib.php:

--- /cvs/moodle18/course/lib.php 2007-10-05 20:19:29.000000000 +1300
+++ course/lib.php  2007-11-06 21:14:08.000000000 +1300
@@ -1382,6 +1382,10 @@
                         echo "";
                     }

+                } elseif ($mod->modname == 'facetoface') {
+                    include_once($CFG->dirroot.'/mod/facetoface/lib.php');
+                    echo facetoface_print_coursemodule_info($mod);
+
                 } else { // Normal activity

                     //Accessibility: for files get description via icon.

It will look like this:

Ftof01.png