How to Change 'Topic Outline' on Class Page
This is a description of the location of code that should be changed in order to remove the ‘Topic Outline’ header of the class page a replace it with The class name and info. This information is for Moodle v1.7 found at http://xref.moodle.org.
The files that need to be changed are:
- course/format/topic/format.php
- course/format/weeks/format.php
- course/format/weekscss/format.php
- course/format/lams/format.php
The first step is to located and/or remove the ‘Topic Outline’ (or corresponding header):
- (Line 81) print_heading_block(get_string(‘topicoutline’), ‘outline’);
- (Line 67) print_heading_block(get_string(‘weeklyoutline’), ‘outline’);
- (Line 96) print_heading_block(get_string(‘weeklyoutline’), ‘outline’);
- (Line 76) print_heading_block(get_string(‘lamsoutline’,‘lams’), ‘outline’);
The next is to move the $thissection declaration further up in the code to the previous location of Header. This is located on the following lines:
- Lines 98-99
- Lines 84-85
- Lines 112-113
- Lines 93-94
The last part is to move the summary division up to the original location of the header (but after the $thissection declaration). Summary division refers to everything inside the <div class=“summary”> block:
- Lines 106-116
- Lines 92-101
- Lines 123-132
- Lines 102-111