Changes to course display in 2.5

Changes to course display in 2.5

by William Mair -
Number of replies: 2

Hi,

In previous versions of Moodle, I have been able to adjust the /course/lib.php file to include other library files to allow the display of resources within the course page itself (like the old accordion plugin in 1.9 - although I've been rewriting it for 2+) in the print_section part of the code. I then used the $mod information in the resource and pulled through certain information in the page (like $mod->id, $mod-name etc..).

In 2.5, this has been completely rewritten and I'm struggling as to how I get the $mod info pulled from lib.php (or is it actually from renderer.php now?) into my resource. I can get the existence of the resource to show, but not the info inside.

Anyone have any suggestions/help?

Thanks

Average of ratings: -
In reply to William Mair

Re: Changes to course display in 2.5

by William Mair -

Found it.

For those interested, that kind of thing is now in the /lib/renderer.php file in the course_section_cm_text function (currently around row 730)