Course fullname instead of "Topic outline"

Course fullname instead of "Topic outline"

ដោយ Peter Diedrichs នៅ
ចំនួនតប៖ 8
រូបភាព Particularly helpful Moodlers

I'd like to have the full name of the course printed where it now says "Topic outline" or "Weekly outline", in the Formal White theme. It's quite hard to find where to change this, though! Anyone who can tell me?

មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Peter Diedrichs

Re: Course fullname instead of "Topic outline"

ដោយ Joseph Rézeau នៅ
រូបភាព Core developers រូបភាព Particularly helpful Moodlers រូបភាព Plugin developers រូបភាព Testers រូបភាព Translators
Which Moodle version are you using, please? 1.5, 1.6 or 1.7 ?
Joseph
មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Joseph Rézeau

Re: Course fullname instead of "Topic outline"

ដោយ Peter Diedrichs នៅ
រូបភាព Particularly helpful Moodlers

I'm using 1.6, but will migrate to 1.7 when it seems reliable enough (which is quite soon, I guess).

មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Peter Diedrichs

Re: Course fullname instead of "Topic outline"

ដោយ Joseph Rézeau នៅ
រូបភាព Core developers រូបភាព Particularly helpful Moodlers រូបភាព Plugin developers រូបភាព Testers រូបភាព Translators

You cannot achieve this through CSS styling. I am suggesting a hack for Moodle 1.6.

For replacing the "Topic outline" string with the actual course's full name:

in file /moodle/course/format/topics/format.php towards line 75 replace

print_heading_block(get_string('topicoutline'), 'outline');

with

print_heading_block($course->fullname);

For replacing the "Weekly outline" string with the actual course's full name:

in file /moodle/course/format/weeks/format.php towards line 65 replace:

print_heading_block(get_string('weeklyoutline'), 'outline');

with

print_heading_block($course->fullname);

Joseph

ឯកសារភ្ជាប់ image000.jpg
មធ្យមភាគនៃរង្វាយតម្លៃ:Useful (2)
ឆ្លើយតបទៅកាន់ Joseph Rézeau

Re: Course fullname instead of "Topic outline"

ដោយ Peter Diedrichs នៅ
រូបភាព Particularly helpful Moodlers

Thanks!

I'd really like not to hack the core files, though... that's so inconvenient when upgrading.

មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Peter Diedrichs

Re: Course fullname instead of "Topic outline"

ដោយ Peter Diedrichs នៅ
រូបភាព Particularly helpful Moodlers

I settled with the full course name in the header, added

<?php echo $heading ?>

beside the logo.

មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Joseph Rézeau

Re: Course fullname instead of "Topic outline"

ដោយ yanzhen liu នៅ
Does it work in Moodle 1.9 + ?
មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Joseph Rézeau

Re: Course fullname instead of "Topic outline"

ដោយ yanzhen liu នៅ
Thank you , Joseph. It works perfectly in Moodle 1.9 +
មធ្យមភាគនៃរង្វាយតម្លៃ: -