Moodle
  1. Moodle
  2. MDL-10360

Modification to weekly, weekly css, and topic course formats to print the course fullname in the course heading block.

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.8.1
    • Fix Version/s: None
    • Component/s: Other
    • Labels:
      None
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_18_STABLE
    • Rank:
      3713

      Description

      At HSU we made modifications to
      course/format/weekscss/format.php on line 90

      original line was
      print_heading_block(get_string('weeklyoutline'), 'outline');

      HSU's change was
      print_heading_block(get_string('weeklyoutline','',$course->fullname), 'outline');

      course/format/weeks/format.php one line 92

      original line was
      print_heading_block(get_string('weeklyoutline'), 'outline');

      HSU line is
      print_heading_block(get_string('weeklyoutline','',$course->fullname), 'outline');

      course/format/topics/format.php on line 103

      original line was
      print_heading_block(get_string('topicoutline'), 'outline');

      HSU line is
      print_heading_block(get_string('topicoutline','', $course->fullname), 'outline');

      This allows us to use the language > language editing > Edit words or phrases > moodle.php
      and add $a to the Weekly Outline language variable and the Topic Outline variable to print out the course fullname. This improvement should allow the basic install of Moodle to still display Weekly Outline and Topic outline in the course header block, but for those installations that would prefer to print the course full name in the course header block like HSU it would allow them that freedom. It could be better to convert this modification to pass the entire course object in case Moodle installations woudl prefer to only display the short name or some other information in the header block.

        Activity

        There are no comments yet on this issue.

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: