moodleou / moodle-mod_subpage

Subpage module allows you to add Moodle activities onto inner page within course
21 stars 15 forks source link

Section under subpage is also shown at the course level #19

Open karikalankumaresan opened 6 years ago

karikalankumaresan commented 6 years ago

I have a Collapsed topic course format as follows, Section 1 subpage 1 scorm package1 scorm package 2 subpage 2 file 1 file 2

However, in moodle 3.4 it is displayed as follows, Section 1 subpage 1 scorm package1 scorm package 2 subpage 2 file 1 file 2 Section 2 scorm package 1 scorm package 2 Section 3 file 1 file 2

The section under the subpage is also displayed at the course level and hiding or removing that section hides and removes the section/activities under the subpage as well. I am kind of stuck with this. Is there a fix for this?

Thanks in advance.

sammarshallou commented 6 years ago

Unfortunately this was caused by a change to how the standard course formats handle what used to be called 'orphaned activities' in Moodle 3.4. Basically the subpage works by using sections past the end of the course which were not displayed on the course page, but unfortunately, Moodle has been changed so that it now displays these sections.

It may be possible to work around this by using a different course format or by hacking some of the code in the course format. (For example, subpage sections are usually numbered > 100 so you could probably hack the course format to avoid displaying anything past 100.) At the OU we have a customised course format which doesn't have this problem, but this is highly custom and not suitable for use elsewhere...

aspark21 commented 6 years ago

https://tracker.moodle.org/browse/MDL-59481

gjb2048 commented 5 years ago

Is this still a problem with CT and the core course formats?

sammarshallou commented 5 years ago

The MDL shown would provide a solution for this but it hasn't been implemented, so while I don't know what CT stands for, yes this is still a problem so far as I know!

gjb2048 commented 5 years ago

CT = Collapsed topics as in the original post.