Monday, November 17, 2014

Show the Process Button in Unit Page of Course Builder 1.6

Simple Solution:

Chose to active the tag:
 gcb_can_persist_activity_events =  True;

The reason behind this:
In utils.py, gcb_can_persist_activity_events let CAN_PERSIST_ACTIVITY_EVENTS become true
              IN lesson.py, CAN_PERSIST_ACTIVITY_EVENTS set is_progress_recorded true:
IN course_base.html, when is_progress_recorded is true, then it would show the progress image.






Monday, November 10, 2014

How to change templates of Coursebuilder?

1. Add module
This also works for adding personal module to the coursebuilder.

2. You have to understand Jinja template. How it works:
When you  register your own module,  you need to create a handler and inside the handler method, there are get method and post method. It would render the html template of jinja. Inside the method, you could notice that how they set the value of template: for example:
Self. template_value["transient_student"] =  zero

If you understand how these template works, then you could do a lot of customization inside the html page of coursebuilder.

Details: