Am I missing this option somewhere?
In the standard Moodle theme, the current week of a given course highlighted blue, any way to implement something like this in Essentials?
-Steve
Highlighting the current week / topic is a course format thing. Just tested in Essential and when you use the course format 'bulb' to state the current topic and the theme decides to highlight it with a glowing blue border. So, umm, it is implemented.
In any course page, turn editing on and as Gareth says, click the light bulb!
Hi, Thank you all for your replies, however I am not seeing this light bulb option you speak of. Could you be a little more specific?
Oh, interesting 'current' class not styled for 'Weekly' format as CSS only defines 'ul.topics'.
Ok, fair enough, Essential is missing the style:
.course-content ul.weeks li.section.main.clearfix.current { box-shadow: 0px 0px 10px #30add1; }
So as a workaround, add that to the Custom CSS box. The fix is to change:
.course-content ul.topics li.section.main.clearfix.current { box-shadow: 0px 0px 10px #30add1; }
into:
.course-content ul li.section.main.clearfix.current { box-shadow: 0px 0px 10px #30add1; }
In the CSS where the original is defined.
Gareth
Thanks you all, Gareth that fixed it for me!
That means Bootstrapbase is missing some CSS too, otherwise it would have added some colour even if it was #EEE wouldn't it?
Hi Mary,
Clean is fine, Essential is broken. It must override it somehow to nothing and then use its own.
FYI all, bulb only on topic based course formats. Weekly uses dates and is automatic.
Gareth
Thanks for that suggestion Gareth.
I have updated github. I think I feel a sub point release coming on.
Julian
So I found the bulb you mentioned in another course, thanks for that. But it is not appearing in courses with the weekly format. Also, In the standard moodle theme, highlighting of the current week happened automatically.
in that case can you test how Clean theme behaves as it might well be a problem in Bootstrabase rather than Essential if it does not work in Clean theme.
What Gareth and Mary said really. This feature is implemented and is working in the Essential theme.
Julian
Fast forward to 2016: it seems that the highlighting function is now forced in the weekly course format under Moodle 3.x, with no visible way to disable it. Is there a workaround to let teachers disable this if needed? Thanks.
I can replicate in Essential and Clean, but also notice that M2.9 has: https://github.com/moodle/moodle/blob/MOODLE_29_STABLE/course/format/renderer.php#L318 - thus do you have evidence that there was previously an option for this?
Hi Gareth,
We jumped from 2.8 to 3. In 2.8, the editing menus were not integrated in a single menu as in versions 3 and 3.1, so it could be a core issue... If so, I'm not sure how to proceed from here.
Nothings changed. Still core code that dictates this: https://github.com/moodle/moodle/blob/MOODLE_31_STABLE/course/format/renderer.php#L431 and https://github.com/moodle/moodle/blob/MOODLE_31_STABLE/course/format/weeks/lib.php#L404-L422. Therefore nothing for me to fix.
And has been since Moodle 2.4: https://github.com/moodle/moodle/blob/MOODLE_24_STABLE/course/format/renderer.php#L140 and https://github.com/moodle/moodle/blob/MOODLE_24_STABLE/course/format/weeks/lib.php#L365-L383.
Thus I believe that you are mistaken and there was never an option with the weeks format. Perhaps you are confused with the topics format?
I thought there was a way to manually highlight a week in previous versions of Moodle, but you're probably right, it must have been only possible using the topics format. Sorry for the confusion.
In any case, it seems there isn't a way currently to have users control if/when the highlighting occurs, so I guess we'll go for Mary's suggestion and hide it altogether.
Thanks to both of you for the heads up, much appreciated.
Hi Marc,
The way things work in Moodle Course Formats do differ, especially in relation to highlighting Topics and Weeks.
Topics let you 'highlight' the topic you want to highlight. Whereas in Weekly the current Week is automatically highlighted. This has been the case as long as I can recall, way back to Moodle 1.7.
If you want to remove that colour or change it you can do that easily with CSS
.course-content .weeks .current { background: none }
.course-content .weeks .current { background-color: yellow }
Hope this helps?
Mary