i've installed devstack on local machine. planning add chat functionality edx platform students contact instructors of course. (just simple page lists instructors of course link chat them) tried using xblock , created one. appears xblock custom course contents injected units in courseware. want add course tab appear every course lists instructors students can consult via chat. possible via xblock? if not, please suggest other options achieve want?
full tutorial: https://openedx.atlassian.net/wiki/display/ac/adding+a+new+course+tab
add entry point python library's setup.py. note new_tab
id of tab, , example.newtab
qualified name of new tab class.
entry_points={ "openedx.course_tab": [ "new_tab = example.newtab", } }
define new tab class subclass of coursetab
, declare properties:
from courseware.tabs import coursetab class newtab(coursetab): """a new course tab.""" name = "new_tab" title = ugettext_noop("new tab") # don't have user in context, don't want translate @ level. view_name = "new_tab_view" @classmethod def is_enabled(cls, course, user=none): """returns true if tab enabled.""" return settings.features.get('new_tab_enabled', false)
https://groups.google.com/forum/#!topic/edx-code/ji-_w-nbu7c
Comments
Post a Comment