It is required OpenKM version 6.3.8 or upper to get this feature working.
-
Upload the control-time.html to /okm:templates OpenKM
-
Copy the UUID of the control-time ( UUID available from profile tab ), then go to Administration > Database query and execute the query below, replacing the UUID by your own
INSERT INTO OKM_CONFIG (CFG_KEY, CFG_TYPE, CFG_VALUE) VALUES ('time.control.template.uuid','string','YOUR_CONTROL_TIME_FILE_UUID');
-
Create a folder named /okm:root/control-time
-
Copy the UUID of the control-time folder ( UUID available from profile tab ), then go to Administration > Database query and execute the query below, replacing the UUID by your own
INSERT INTO OKM_CONFIG (CFG_KEY, CFG_TYPE, CFG_VALUE) VALUES ('time.control.folder.uuid','string','YOUR_CONTROL_TIME_FOLDER_UUI');
- Set the date format. Go to Administration > Database query and execute the query below
INSERT INTO OKM_CONFIG (CFG_KEY, CFG_TYPE, CFG_VALUE) VALUES ('time.control.date.format','string','dd/MM/yyyy');
-
Download the latest Time-control-1.0.jar from releases github section and copy into your $TOMCAT_HOME/plugins folder
-
Restart OpenKM
-
Register Automation Rule for the event "User login" in post stage with a action "TimeControl".
-
Register Automation Rule for the event "User logout" in pre stage with a action "TimeControl".