Forums
Hi,
I wanted to share my experience with the community, it is related to a module that shows the time spent per user and per node.
I found a module that can gives time statistics to learners :
have a tab on the “user profile”
see the time they spent
download these statistics in a XLS file
RequirementsTimeSpent module ( https://www.drupal.org/project/time_spent )View Data Export (https://www.drupal.org/project/views_data_export)
Main steps
Download and enable the “Time Spent” moduleDownload and enable the “View Data Export” moduleCreate a new view : Structure => ViewTick “page” (and “block” too if you want)Add these relationships to your view:
Timespent: Node IDTimespent: User ID
Add these fields to your view
Timespent: Time spent length (Time spent length)(Timespent node) Content: Title (Title) => don’t forget to Link this field to the original piece of content(Timespent user) User: Name (Name)
Add these Filter Criteria
(Timespent user) User: Current (Yes)(Timespent user) User: Active (Yes)
Select the Format of your view => Table
So what we have here is a view that will show :The time spent length of each content related to the active current user We will add now a tab on the user profile:
Go on Page Settings of your viewAdd a path (I chose user/%/timespent)Select the menu item entry:
Type: menu tabMenu: Navigation
Configure Access:PermissionView published content
Making this content downloadable
Click on “Add” and choose “Data export”Select XLS file as a Format
Save your view and go to the user account
screenshot
There are a lot of different ways to use this module, so feel free to share your experience :) The TimeSpent module can also show the total time spent on your Opigno website
Big up to the Opigno community!
Configuring the XLS export
ex:
a href = "htt p ://myopigno.com/?q=export-my-timespent">Download my Timespent sheet
Showing the timespent by a learner on Opigno
Hi Dj,
Hi Eva
Just tried it and it worked.