General developer forum

 
 
Picture of William Mair
Changes to course display in 2.5
 

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: -
Picture of William Mair
Re: Changes to course display in 2.5
 

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)

 
Average of ratings: -
Dan at desk in Moodle HQ, Perth
Re: Changes to course display in 2.5
 
Average of ratings:Useful (1)