How to make Resume course content for student to work accross all courses

25 views
Skip to first unread message

Vinayak Bhat

unread,
Apr 28, 2017, 2:16:13 AM4/28/17
to General Open edX discussion

Hi All,

For the current project of mine, we have the following requirement. Provide a Resume button which takes the student to the last accessed course content. I know that there is a feature which stores the last accessed courseware for a each user and course in FieldDataCache. But I am unable to which was the course last accessed by the student by the current data models i.e For any given course enrolled by the student, its possible to get the last accessed content. But how to get the last accessed course id?

 Any direction on how to go about implementing this feature is welcome.

I am currently thinking of introducing a field in  student model to store the last accessed courseId. And then accessing FieldDataCache to get last accessed course for that content.
Any suggestions on this approach would be great.

I am working on forked eucalyptus code base .

Thanks,
Vinayak

Vinayak Bhat

unread,
Apr 28, 2017, 4:40:45 AM4/28/17
to General Open edX discussion
Got it working by storing the last accessed coursekey string in meta field of UserProfile model. Meta field is a json dump kept for expansion (as per comments).  Not sure if there is any downside to this solution.

Regards,
Vinayak

Rizky Ariestiyansyah

unread,
Jul 11, 2017, 3:37:18 AM7/11/17
to General Open edX discussion
Anyone?
Reply all
Reply to author
Forward
0 new messages