# 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](http://xref.moodle.org). The code pertaining to this issue is consistent with 1.8 ([line 105](http://moodle.cvs.sourceforge.net/moodle/moodle/course/format/topics/format.php?view=markup))

The files that need to be changed are:

1. course/format/topic/format.php
2. course/format/weeks/format.php
3. course/format/weekscss/format.php
4. course/format/lams/format.php

The first step is to located and/or remove the ‘Topic Outline’ (or corresponding header):

1. (Line 81) print\_heading\_block(get\_string(‘topicoutline’), ‘outline’);
2. (Line 67) print\_heading\_block(get\_string(‘weeklyoutline’), ‘outline’);
3. (Line 96) print\_heading\_block(get\_string(‘weeklyoutline’), ‘outline’);
4. (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:

1. Lines 98-99
2. Lines 84-85
3. Lines 112-113
4. 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 &lt;div class=“summary”&gt; block:

1. Lines 106-116
2. Lines 92-101
3. Lines 123-132
4. Lines 102-111

After searching the Moodle Forums (moodle.org) I found several posts about this that were less invasive.

- [http://moodle.org/mod/forum/discuss.php?d=32553](http://moodle.org/mod/forum/discuss.php?d=32553)
- This suggests changing the language settings, however this causes a site wide change and could not be class independant.

- [http://moodle.org/mod/forum/discuss.php?d=60325](http://moodle.org/mod/forum/discuss.php?d=60325)
- This proposes a <span class="caps">CSS</span> method of removal of Topic Outline, but does not give a way to put class info in its place.

- [http://moodle.org/mod/forum/discuss.php?d=61110](http://moodle.org/mod/forum/discuss.php?d=61110)
- This gives instructions on the exact php changes needed on format.php

- [http://moodle.org/mod/forum/discuss.php?d=55009](http://moodle.org/mod/forum/discuss.php?d=55009)
- This is a similar solution to the first. It make a site wide change.