![]()
When a page is really long (for example, because of infinite scrolling), it becomes too tedious to scroll back up through screens and screens of content. Hence the role of the Back to Top button. It is not just very trendy, but also very useful and it is not implemented in Moodle by default (at least not yet, Moodle v3.8.2). You can see/use a similar one on this particular page, it is a yellow circle with a white arrow on the right.
Let's see how we can resolve that issue. Update: it is a core functionality from v3.9, but not as pretty as my solution ;)
0 Comments
![]() Sometimes it is confusing that the description of the activity is under the title/link on the course main page, and the same text is also visible when you open the activity. On the course view and on the activity view page you might need a little bit different content. Or you would like to mimic the fancy Show more... or Read more... buttons on modern web pages. The following solution will show the button on the course view page but not on the activity page, even if the description is visible on both views. First, we have to add the JQuery code to the usual place: Dashboard > Site administration > Appearance > Additional HTML ![]()
This trick might be useful when you need to add extra functionality to your Moodle site, but you don't want to modify the PHP code because
The course ID is in the BODY tag as a CLASS among other useful information about the course/page. ![]() Sometimes the built-in question types are not good enough to create a complex question. In this case your best option is to use the Embedded answers (Close) questions. Embedded answers (Cloze) questions consist of a passage of text (in Moodle format) that has various answers embedded within it, including multiple choice, short answers and numerical answers. The size of INPUT HTML ELEMENT ( Short and Numerical) will be adjustable to the length of the longest answer (good or bad) + a random number (0 to 15% total length). In this case the size of the input box can help your students to find the right answer easier. See the image below: |